Completely uninstall and remove MySQL
9 months ago
Here is how to completely remove mySQL from Linux Mint and Ubuntu. Might also apply to Debian:
-
Start mysql, if you can't then try sudo mysqld --skip-grant-tables
-
Exit mysql
-
sudo rm -rf /var/lib/mysql
-
Find which packages are installed by running sudo dpkg -S etc/mysql
-
Remove each of these packages with a sudo apt-get remove. For example sudo apt-get remove mysql-common mysql-server-5.1
-
Remove the mysql user: sudo userdel mysql