Remove mysql Completely error
Solution 1:
What helped me
sudo systemctl disable mysql
then afterwards remove/purge or whatever.
sudo apt autoremove
did its job.... done
Solution 2:
The actions you need to take: 1. Get all mysql-related components 2. Remove all mysql component installed 3. Clean up installation directory (you can rename the folder if you need the old data)
The yum way, which I found better:
yum list installed | grep mysql
yum remove mysql-client mysql-server mysql-common mysql-devel
The apt-get way:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
Remove data & configuration
rm -rf /var/lib/mysql/
rm -rf /etc/my.cnf