Ok this is more of a \'Keeping my house in order\' question.
PHPmyAdmin is installed but it has a bunch of databases installed as default.
•cdcol (1) •infor
Not all of those listed databases are phpMyAdmin
related. Some are required for MySQL to operate normally.
performance_schema
http://dev.mysql.com/doc/refman/5.5/en/performance-schema.htmlinformation_schema
http://dev.mysql.com/doc/refman/5.5/en/information-schema.htmltest
http://dev.mysql.com/doc/refman/5.0/en/database-use.htmlmysql
http://dev.mysql.com/doc/refman/5.5/en//adding-users.htmlcdcol
Probably is for the cd collection sample database that comes with XAMPP
. webauth
is probably part of XAMPP
as well.
The only phpMyAdmin
related database (as you probably already guessed) is phpmyadmin
, you can delete it, but letting it be there would improve performance, and add more functionality to the phpMyAdmin
.
Delete the cdcol database; it is just a sample. For the other tables you mentioned, hide them from view by adding the following to config.inc.php.
$cfg['Servers'][$i]['hide_db']='^(information_schema|performance_schema|mysql|phpmyadmin|test|webauth)$';
If you are trying to do this via an automated script or command line:
Create a hidedb.sql
file and add the following content:
USE 'phpmyadmin';
UPDATE `pma__userconfig` SET `config_data` = '{\"Server\\/hide_db\":\"(information_schema|performance_schema|mysql|phpmyadmin)\",\"collation_connection\":\"utf8mb4_unicode_ci\"}' WHERE `pma__userconfig`.`username` = 'phpmyadmin';
The Command line (or in a script - SAFER WAY):
$ sudo mysql -u root -p < hidedb.sql
Of course you'll have to enter your sudo and then your mysql root database password.
If you're doing this in an automated script that you only can run as root:
NOTE: THIS IS NOT A GOOD IDEA! It exposes your root password!
DB_PWD="my_password"
mysql -u root -p"$DB_PWD" < hidedb.sql