$app->log('Unable to connect to the database'.mysqli_connect_error(),LOGLEVEL_DEBUG);
return;
}
require_once'lib/mysql_clientdb.conf';
/* Get database-size from information_schema */
$result=mysqli_query($link,"SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysqli_real_escape_string($link,$database_name)."'");
$result=$this->_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".$this->escape($database_name)."'");
if(!$result){
$app->log('Unable to get the database-size for '.$database_name.': '.mysqli_error($link),LOGLEVEL_DEBUG);
$this->_sqlerror('Unable to get the database-size for '.$database_name);