Uninstall or Completely Delete Mysql From Ubantu
When you try to upgrade your ubantu server from lower to higher version sometime your mysql server stopped working, and after hard try you can’t find what is the actual problem and finally decide need to uninstall and reinstall mysql from the scratch. But looking for how you can completely delete your mysql from linux(ubantu) machine then here i have share few command to completely delete your mysql from ubantu.
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
Then you can reinstall your mysql by running below command on terminal.
sudo apt-get install mysql-server