This commit is contained in:
Alexander M. Turek
2003-03-27 21:39:23 +00:00
parent d924f9d2f1
commit 19f560d7ee
2 changed files with 6 additions and 3 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-03-25 Alexander M. Turek <rabus@users.sourceforge.net> 2003-03-25 Alexander M. Turek <rabus@users.sourceforge.net>
* server_privileges.php3, lang/*.inc.php3: Fixed bug #708292 (Support for * server_privileges.php3, lang/*.inc.php3: Fixed bug #708292 (Support for
host-based privileges). host-based privileges).
* server_processlist.php3, lang/*.inc.php3: Feature #707495
(SHOW FULL PROCESSLIST).
2003-03-27 Marc Delisle <lem9@users.sourceforge.net> 2003-03-27 Marc Delisle <lem9@users.sourceforge.net>
* sql.php3: avoid long delays when browsing big tables (MySQL 4) * sql.php3: avoid long delays when browsing big tables (MySQL 4)

View File

@@ -40,7 +40,8 @@ echo '<h2>' . "\n"
* Sends the query and buffers the result * Sends the query and buffers the result
*/ */
$serverProcesses = array(); $serverProcesses = array();
$res = @PMA_mysql_query('SHOW PROCESSLIST;', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW PROCESSLIST;'); $sql_query = 'SHOW' . (empty($full) ? '' : ' FULL') . ' PROCESSLIST;';
$res = @PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query);
while ($row = PMA_mysql_fetch_array($res, MYSQL_ASSOC)) { while ($row = PMA_mysql_fetch_array($res, MYSQL_ASSOC)) {
$serverProcesses[] = $row; $serverProcesses[] = $row;
} }
@@ -55,7 +56,7 @@ unset($row);
?> ?>
<table border="0"> <table border="0">
<tr> <tr>
<th></th> <th><?php echo PMA_MYSQL_INT_VERSION < 32307 ? '' : '<a href="./server_processlist.php3?'. $url_query . (empty($full) ? '&amp;full=1' : '') . '" title="' . (empty($full) ? $strShowFullQueries : $strTruncateQueries) . '"><img src="./images/' . (empty($full) ? 'full' : 'partial') . 'text.png" width="50" height="20" border="0" alt="' . (empty($full) ? $strShowFullQueries : $strTruncateQueries) . '" /></a>'; ?></th>
<th>&nbsp;<?php echo $strId; ?>&nbsp;</th> <th>&nbsp;<?php echo $strId; ?>&nbsp;</th>
<th>&nbsp;<?php echo $strUser; ?>&nbsp;</th> <th>&nbsp;<?php echo $strUser; ?>&nbsp;</th>
<th>&nbsp;<?php echo $strHost; ?>&nbsp;</th> <th>&nbsp;<?php echo $strHost; ?>&nbsp;</th>