patch #683302: InnoDB status monitor
This commit is contained in:
@@ -12,6 +12,8 @@ $Source$
|
||||
2003-02-28 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* Documentation.html: Fixed a typo.
|
||||
* server_privileges.php3: Fixed bug #691910.
|
||||
* server_status.php3, lang/*.inc.php3: Patch #683302: InnoDB status monitor,
|
||||
thanks to Jason Carlson (jjcarlson).
|
||||
|
||||
2003-02-28 Garvin Hicking <me@supergarv.de>
|
||||
* config.inc.php3, header.inc.php3, queryframe.php3, querywindow.php3,
|
||||
|
@@ -599,10 +599,12 @@ $strMIME_without = 'Kursiv dargestellte MIME-Typen besitzen keine untergliederte
|
||||
$strMIME_description = 'Beschreibung';
|
||||
$strMIME_nodescription = 'F<>r diese Umwandlung ist keine Beschreibung verf<72>gar.<br />Bitte fragen Sie den Authoren der Funktion namens %s.';
|
||||
$strMIME_file = 'Dateiname';
|
||||
$strInnodbStat = 'InnoDB-Status';
|
||||
|
||||
// To translate
|
||||
$strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate
|
||||
$strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate
|
||||
$strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate
|
||||
$strTransformation_image_jpeg__link = 'Displays a link to this image (direct blob download, i.e.).';//to translate
|
||||
$strTransformation_image_jpeg__inline = 'Displays an image directly in the table (uses wrapper, direct blob download, i.e.).';//to translate
|
||||
$strInnodbStat = 'InnoDB Status'; //to translate
|
||||
?>
|
||||
|
@@ -600,10 +600,12 @@ $strMIME_without = 'Kursiv dargestellte MIME-Typen besitzen keine untergliederte
|
||||
$strMIME_description = 'Beschreibung';
|
||||
$strMIME_nodescription = 'Für diese Umwandlung ist keine Beschreibung verfügar.<br />Bitte fragen Sie den Authoren der Funktion namens %s.';
|
||||
$strMIME_file = 'Dateiname';
|
||||
$strInnodbStat = 'InnoDB-Status';
|
||||
|
||||
// To translate
|
||||
$strTransformation_image_jpeg__plain = 'Takes an imagefile and outputs a link for it. First options argument is a possible prepended string like http://...';//to translate
|
||||
$strTransformation_text_plain__formatted = 'Preserves original formatting of the field. No Escaping is done.';//to translate
|
||||
$strTransformation_text_plain__unformatted = 'Displays HTML code as HTML entities. No HTML formatting is shown.';//to translate
|
||||
$strTransformation_image_jpeg__link = 'Displays a link to this image (direct blob download, i.e.).';//to translate
|
||||
$strTransformation_image_jpeg__inline = 'Displays an image directly in the table (uses wrapper, direct blob download, i.e.).';//to translate
|
||||
$strInnodbStat = 'InnoDB Status'; //to translate
|
||||
?>
|
||||
|
@@ -15,6 +15,24 @@ require('./server_common.inc.php3');
|
||||
require('./server_links.inc.php3');
|
||||
|
||||
|
||||
/**
|
||||
* InnoDB status
|
||||
*/
|
||||
if (!empty($innodbstatus)) {
|
||||
echo '<h2>' . "\n"
|
||||
. ' ' . $strInnodbStat . "\n"
|
||||
. '</h2>' . "\n";
|
||||
$sql_query = 'SHOW INNODB STATUS;';
|
||||
$res = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query);
|
||||
$row = PMA_mysql_fetch_row($res);
|
||||
echo '<pre>' . "\n"
|
||||
. htmlspecialchars($row[0]) . "\n"
|
||||
. '</pre>' . "\n";
|
||||
mysql_free_result($res);
|
||||
include('./footer.inc.php3');
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
@@ -201,9 +219,9 @@ if (!empty($serverStatus)) {
|
||||
<th> <?php echo $strValue; ?> </th>
|
||||
</tr>
|
||||
<?php
|
||||
$useBgcolorOne = TRUE;
|
||||
$countRows = 0;
|
||||
while (list($name, $value) = each($serverStatus)) {
|
||||
$useBgcolorOne = TRUE;
|
||||
$countRows = 0;
|
||||
while (list($name, $value) = each($serverStatus)) {
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; ?>"> <?php echo htmlspecialchars(str_replace('_', ' ', $name)); ?> </td>
|
||||
@@ -224,8 +242,8 @@ while (list($name, $value) = each($serverStatus)) {
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
unset($useBgcolorOne);
|
||||
}
|
||||
unset($useBgcolorOne);
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
@@ -234,6 +252,23 @@ unset($useBgcolorOne);
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
$res = PMA_mysql_query('SHOW VARIABLES LIKE "have_innodb";', $userlink);
|
||||
if ($res) {
|
||||
$row = PMA_mysql_fetch_row($res);
|
||||
if (!empty($row[1]) && $row[1] == 'YES') {
|
||||
?>
|
||||
<br />
|
||||
<li>
|
||||
<!-- InnoDB Status -->
|
||||
<a href="./server_status.php3?<?php echo $url_query; ?>&innodbstatus=1">
|
||||
<b><?php echo $strInnodbStat; ?></b>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
unset($res);
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
|
Reference in New Issue
Block a user