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.

Step.1:

sudo apt-get remove --purge mysql*

Step.2:

sudo apt-get purge mysql*

Step.3:

sudo apt-get autoremove

Step.4:

sudo apt-get autoclean

Step.5:

sudo apt-get remove dbconfig-mysql

Step.6:
Then you can reinstall your mysql by running below command on terminal.

sudo apt-get install mysql-server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.