Hello,
I use phpMyAdmin 4.0.5
In according to phpmyadmin documentation there is following directive that does NOT work:
config:option:: $cfg['Servers'][$i]['ShowDatabasesCommand']
:type: string
:default: 'SHOW DATABASES'
On a server with a huge number of databases, the default SHOW DATABASES
command used to fetch the name of available databases will probably be too
slow, so it can be replaced by faster commands. You can use #user#
string will be replaced by current user.
When using false
, it will disable fetching databases from the server,
only databases in :config:option:$cfg['Servers'][$i]['only_db']
will be
displayed.
Examples:
'SHOW DATABASES'
"SHOW DATABASES LIKE '#user#\_%'"
'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
false
If i set this directive with "SHOW DATABASES LIKE '#user#\_%'"
or false
in /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php it just be ignored as you can see on mysql_log:
SET timestamp=1381351895;
SELECT SCHEMA_NAME
FROM INFORMATION_SCHEMA
.SCHEMATA
WHERE TRUE AND SCHEMA_NAME
NOT REGEXP 'information_schema' ORDER BY SCHEMA_NAME
ASC LIMIT 0, 25;
SET timestamp=1381351903;
SHOW DATABASES;
SET timestamp=1381351911;
SHOW DATABASES;
Have a solution?
No solution yet. Duplicate ticket, see
https://sourceforge.net/p/phpmyadmin/bugs/3945/
Is a bug or my personal problem?
A bug.
Hi,
I need more details. When you say "a huge number of databases", you mean how many (approximately)?
Also, on which MySQL version did you experience slow response, running phpMyAdmin 4.0.5 ?
We are deprecating the ShowDatabasesCommand directive for phpMyAdmin 4.1; this version will require a minimum of MySQL 5.5.
hi,
i have a same problem, then wich solution is recommend ?
Sanryu,
it depends: which MySQL version are you using?