How To Remove MySQL

If you wish to remove MySQL from your system, remember to backup any IMPORTANT DATA. Once you uninstall the database, there is no return. It's gone forever. DO BACKUPS NOW!

Linux Uninstall:

#BEFORE YOU PROCEED, BACKUP ALL IMPORTANT DATA. THERE IS NO GOING BACK ONCE YOU UNINSTALL!!!

#Remove all packages of MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*

#Remove the directory deleting all data
sudo rm -rf /etc/mysql /var/lib/mysql


sudo apt autoremove
sudo apt autoclean

Last updated