From 2c4ef3888dbb59b01289f023ef8fa323f621a7ec Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 28 Aug 2015 19:44:33 +1000 Subject: [PATCH] Fix bug - Do not export `sys` database when exporting server Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + libraries/display_export.lib.php | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa92881a23..c3ef6124c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -94,6 +94,7 @@ phpMyAdmin - ChangeLog + issue #11414 Unclear export options / organization / hierarchy Set minimum required PHP version to 5.5 (older versions are EOL) - issue #11407 ALTER TABLE failing on import when table exists +- issue Do not export `sys` database when exporting server 4.4.15.0 (not yet released) - issue #11411 Undefined "replace" function on numeric scalar diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index 48615fa297..2613cd9d13 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -61,10 +61,7 @@ function PMA_getHtmlForExportSelectOptions($tmp_select = '') } foreach ($GLOBALS['pma']->databases as $current_db) { - if ($current_db == 'information_schema' - || $current_db == 'performance_schema' - || $current_db == 'mysql' - ) { + if ($GLOBALS['dbi']->isSystemSchema($current_db, true)) { continue; } if (isset($_GET['db_select'])) {