GICT knowledge base
PHPMyAdmin shows every database when logging in as a user
Published
If phpmyadmin shows all the databases on a server when it should only show the users databases do the following:
First be sure a MySQL root password is set.
Add safe-show-database in the mysqld section of /etc/my.cnf
[mysqld]
safe-show-database
Then restart mysql.
If this does not work do the following:
mysql -u root -p mysql
update `user` set Create_tmp_table_priv = ‘N’, Lock_tables_priv = ‘N’ where user <> ‘root’;
Go back to shell and run mysqladmin reload
If you get an error about a column not found run the following:
mysql_fix_privilege_tables [mysql root password]
then rerun the update command.
Related guides
Host Additional Domains on an Eligible InterServer Account
Check your hosting limits, choose a separate site or alias and use cPanel or DirectAdmin with deliberate DNS, content and certificate verification.
cPanelHardening Your cPanel Server: Beyond the Basics After CVE-2026-41940
Security is a moving target. With the recent discovery of CVE-2026-41940, it has become clear that just having a firewall isn't enough anymore.
cPanelcPanel and Plesk notice: Awstats,. Webalizer and Analog stats are being removed
Important Update: cPanel and Plesk Phasing Out Legacy Statistics Tools If you regularly check your website traffic through your hosting control panel, we have an...
cPanelThe dangers of shared licenses (in other words unofficial/cracked licenses)
Why Cracked cPanel Licenses Aren’t Worth the Risk: A Guide for InterServer Customers When you’re managing a server, every dollar counts.
