code {font-size: 1em;display:inline;margin:0px; padding:0px;line-height:1.2em;} div.sidebar {width:40%; float:right; background-color:lightgrey;font-size:.7em;line-height:1.2em;padding:4px;margin:4px;}
Many installations of MySQL server come with a built-in database called test. It's initially empty, and you might wonder what it's for, or even if you can delete it without any problems.
What is it for?
The test database is installed by the MySQL Server RPM as part of the mysql_install_db process, and some other package managers run that script too. If you run that script as part of a manual install of MySQL, you'll get the same effect. It creates the database by creating an empty directory called "test" in the data directory, and creates wide-open access to the database test and any database with a name beginning with test_ by inserting a couple of rows into the mysql.db table that give everyone …
[Read more]