Here’s how to do a complete purge of MySql. You’ll lose all your data.
sudo apt-get --purge remove mysql-server mysql-common mysql-client
sudo apt-get install mysql-server mysql-common mysql-client php5-mysql
mysqladmin -u root password your-new-password
sudo /etc/init.d/mysql restart
mysql -u root -p

2 Comments
This is a great tip! Thank you very much
Thank you very much!
This helped me with my linux server.