How to uninstall MySQL from ubuntu 20.04
This tutorial is for How to uninstall MySQL from ubuntu 20.04. While upgrading from ubuntu 18.04 to ubuntu 20.04, we faced one issue that we unexpected. we incidents are caused by MySQL server updates while setting up the MySQL by apt. it is hanging on the server and it will not work for leaving it for around two hours.
So we decide to remove the MySQL server and again install, the below step that we were done.
Remove MySQL
sudo apt-get remove --purge mysql*
Remove purge
sudo apt-get purge mysql*
Autoremove and autoclean
sudo apt-get autoremove
sudo apt-get autoclean
Remove database configure
sudo apt-get remove dbconfig-mysql
Dist upgrade
sudo apt-get dist-upgrade
Install MYSQL
sudo apt-get install mysql-server
Check MYSQL Status
sudo service mysql status