diff --git a/templates/structure/body_for_table_summary.phtml b/templates/structure/body_for_table_summary.phtml index 4392a70ea8..94a9648dcc 100644 --- a/templates/structure/body_for_table_summary.phtml +++ b/templates/structure/body_for_table_summary.phtml @@ -34,11 +34,18 @@ $cell_text = ($approx_rows) ?> 1)): ?> - fetchValue( - 'SHOW VARIABLES LIKE \'storage_engine\';', - 0, - 1 - ); ?> + fetchValue( + "SHOW VARIABLES LIKE 'storage_engine';", 0, 1 + ); + if (empty($default_engine)) { + // MySQL >= 5.5.3 + $default_engine = $GLOBALS['dbi']->fetchValue( + "SHOW VARIABLES LIKE 'default_storage_engine';", 0, 1 + ); + } + ?>