Home > MySQL, PHP > phpMyAdmin

phpMyAdmin

March 13th, 2009

In config file ( config.inc.php) you can’t set $cfg['Servers'][$i]['only_db'] = ‘my_db . It will return NO DATABASES FOUND

$cfg['Servers'][$i]['only_db']

If set to a (an array of) database name(s), only this (these) database(s) will be shown to the user. Since phpMyAdmin 2.2.1, this/these database(s) name(s) may contain MySQL wildcards characters (“_” and “%”). If you want to use literal instances of these characters, escape them .

use 'my\_db' and not 'my_db'


MySQL, PHP

  1. No comments yet.
  1. No trackbacks yet.