You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$app->log('Unable to connect to the database'.mysqli_connect_error(), LOGLEVEL_DEBUG);
562
564
return;
563
565
}
566
+
564
567
/* Get database-size from information_schema */
565
-
$result=mysqli_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysqli_real_escape_string($database_name)."';", $link);
566
-
$this->close;
567
-
if (!$result) {
568
-
$app->log('Unable to get the database-size'.mysqli_error($link), LOGLEVEL_DEBUG);
568
+
$result = mysqli_query($link, "SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysqli_real_escape_string($link, $database_name)."'");
569
+
if(!$result) {
570
+
$app->log('Unable to get the database-size for ' . $database_name . ': '.mysqli_error($link), LOGLEVEL_DEBUG);
0 commit comments