[Ubuntu] How to completely uninstall MySQL Server ?

[Ubuntu] How to completely uninstall MySQL Server ?

Clean uninstall

sudo apt-get --purge remove mysql-client mysql-server mysql-common
sudo apt-get autoremove

Configuration directory deletion

sudo rm -rf /etc/mysql

Databases deletion

sudo rm -rf /var/lib/mysql

Comments