Friday, June 14, 2013

Completely Uninstall MySQL from Ubuntu and Reinstall

To remove MySQL completely from your system just type in terminal

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

After that make sure to Removed /var/lib/mysql

  • sudo rm -r /var/lib/mysql

Then you have successfully remove mysql from your system. Finally you can install mysql again by typing following command in terminal

  • sudo apt-get install mysql-server

No comments:

Post a Comment