You are here

function dba_mysql_report_status in Database Administration 7

Get MySQL status message, method changes depending on version of MySQL being used.

File

database/mysql.report.inc, line 39
Provides database driver specific report functions.

Code

function dba_mysql_report_status($data) {
  $value = new stdClass();
  $query = db_query('SELECT LOWER(variable_name) AS name, variable_value FROM information_schema.global_status');
  foreach ($query as $row) {
    $column = $row->name;
    $value->{$column} = $row->variable_value;
  }
  return $value;
}