You are here

function dba_mysql_report_variables in Database Administration 7

Return current MySQL variables.

File

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

Code

function dba_mysql_report_variables() {
  $variables = new stdClass();
  $query = db_query("SHOW VARIABLES");
  foreach ($query as $row) {
    $column = $row->Variable_name;
    $variables->{$column} = $row->Value;
  }
  return $variables;
}