Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPmyAdmin Default Databases

Tags:

phpmyadmin

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) •information_schema (37) •mysql (24) •performance_schema (17) •phpmyadmin (8) •test •webauth (1)

I recently deleted a bunch of these but after that I had lots of issues accessing PHPmyAdmin and had to re-install. Anyway long story short can I happily delete these without effecting my system?

like image 207
BrogenMacy Avatar asked Jan 28 '13 13:01

BrogenMacy


People also ask

Which database is used in phpMyAdmin?

PhpMyAdmin is an open source tool where you can administer your MariaDB database(s). It is pre-installed with your web hosting subscription.

What are the default MySQL databases?

There is no default database. A fresh MySQL server install will have 0 databases. The install script will run mysql_install_db after the server is running to create a mysql database, which MySQL uses to store users and privileges.

Is phpMyAdmin MySQL database?

phpMyAdmin is one of the most popular applications for MySQL database management. It is a free tool written in PHP. Through this software, you can create, alter, drop, delete, import and export MySQL database tables.

Where are phpMyAdmin database stored?

Your phpMyAdmin files are located in the /usr/share/phpmyadmin/ directory.


2 Answers

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)$';
like image 108
WCJ Avatar answered Oct 21 '22 08:10

WCJ


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.html
  • information_schema http://dev.mysql.com/doc/refman/5.5/en/information-schema.html
  • test http://dev.mysql.com/doc/refman/5.0/en/database-use.html
  • mysql http://dev.mysql.com/doc/refman/5.5/en//adding-users.html

cdcol 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.

like image 21
racetrack Avatar answered Oct 21 '22 09:10

racetrack