How to hide information_schema database from phpmyadmin

Onkar Janwa picture Onkar Janwa · Aug 22, 2012 · Viewed 17.6k times · Source

I am able to hide the database from writing this line

$cfg['Servers'][$i]['hide_db'] = 'information_schema'; 

in config.inc.php file pf phpmyadmin.

It is possible to access content of this database through url like http://www.test.com/phpmyadmin/index.php?db=information_schema&token=3ba37ae1e41f6a10e4afc7c69b934bba

How is it possible to remove complete access of information_schema database ?

Answer

Abhishek Goel picture Abhishek Goel · Apr 15, 2017

I installed phpmyadmin in outside directory but and these methods didn't work for me.

Open phpmyadmin

Settings > Features > General > database > Hide databases

Enter Database that you want to hide as following

information_schema|performance_schema|mysql