Install & Uninstall MySQL - Ubuntu
Ran into an issue on with a VPS on Slicehost that I cloned the other day. The MySQL server wouldn’t start as it failed to find the mysqld.sock file (which appeared to be non-existent). I uninstalled MySQL, which was fine because we didn’t need any of the cloned databases and then just reinstalled it.
Install MySQL:
sudo aptitude install mysql-server mysql-client libmysqlclient15-dev
Remove MySQL:
sudo apt-get --purge remove mysql-server mysql-common mysql-client libmysqlclient15-dev libmysql-ruby
As a side note, this article has extended information about adding and removing users to your MySQL installation: http://articles.slicehost.com/2008/7/10/mysql-creating-and-editing-users
