July 27, 2010

MySQL clean reinstall

To perform a clean reinstall of the MySQL server (which regenerates start scripts, databases and config files) use:

sudo apt-get install mysql-server
sudo apt-get remove --purge mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get install mysql-server

Some times is useful!