Under /etc/mysql, copy my-medium.cnf as my.cnf. (available template files are: my-huge.cnf, my-large.cnf, my-medium.cnf and my-small.cnf. my-medium.cnf is more than enough for small database such as “chemical”)
Edit my.cnf: replace “skip-locking” with “skip-external-locking” to avoid warning message like “'–skip-locking' is deprecated” (
ref). Update: for ver5.5.27, it is already “skip-external-locking” by default.
sudo mysql_install_db --user=mysql
sudo chmod +x /etc/rc.d/rc.mysqld
sudo /etc/rc.d/rc.mysqld start
sudo su mysql
mysqladmin -u root password <new-password>