Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3080 (ok 3.3.6) hides more databases than it should, fix included

3.3.2
fixed
Interface (555)
1
2013-06-11
2010-08-13
Jan Potužník
No

Version 3.3.2
$cfg['Servers'][$i]['hide_db'] = '(mysql|information_schema|phpmyadmin)';

hides for example database with the name "my_mysql_db"

Solution is to change line 92 of List_Database.class.php
to
if (preg_match('/^' . $GLOBALS['cfg']['Server']['hide_db'] . '$/', $db)) {

hope it helps

Discussion

  • Jan Potužník
    Jan Potužník
    2010-08-13

    now i checked version 3.3.5 - the regexp is still the same, but hide_db option is not in the sample config, so better solution is to update documentation in this way:
    and to hide both "db1" and "db2" use
    $cfg['Servers'][$i]['hide_db'] = '^(db1|db2)$';

     
  • Michal Čihař
    Michal Čihař
    2010-08-20

    • assigned_to: nobody --> nijel
     
  • Michal Čihař
    Michal Čihař
    2010-08-20

    Thanks documentation has been updated.

     
  • Michal Čihař
    Michal Čihař
    2010-08-20

    • summary: hides more databases than it should, fix included --> (ok 3.3.6) hides more databases than it should, fix included
    • priority: 5 --> 1
     
  • Marc Delisle
    Marc Delisle
    2010-08-28

    • status: open --> closed
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • Status: closed --> fixed