Skip to content

Commit 02e3ef6

Browse files
author
Marius Burkard
committed
- only to mysql check and not repair (innoDB does not support repair table)
1 parent 9ab5689 commit 02e3ef6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/lib/update.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ function checkDbHealth() {
103103
$notok = array();
104104

105105
echo "Checking ISPConfig database .. ";
106-
exec("mysqlcheck -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." -p".escapeshellarg($conf['mysql']['admin_password'])." -P ".escapeshellarg($conf['mysql']['port'])." -r ".escapeshellarg($conf["mysql"]["database"]), $result);
106+
$result = null;
107+
exec("mysqlcheck -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." -p".escapeshellarg($conf['mysql']['admin_password'])." -P ".escapeshellarg($conf['mysql']['port'])." ".escapeshellarg($conf["mysql"]["database"]), $result);
107108
for( $i=0; $i<sizeof($result);$i++) {
108109
if ( substr($result[$i], -2) != "OK" ) {
109110
$notok[] = $result[$i];

0 commit comments

Comments
 (0)