[SOLVED] What are the steps to reinstall mysql server using Ubuntu Terminal?

| | 1 min read

I have faced several issues with MySQL installation while setting it up in my system. Hope this article will help you fix the mysql related issues. Here, I document the various steps I have taken to update MySQL installation.

To remove or uninstall Mysql Client Core 5.5 separately, I used the following commands:

sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get remove --purge mysql-client-core-5.5
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql

Now install or reinstall mysql client and server:

sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install mysql-workbench

Please find other solved issues related to MYSQL here.

Please feel free to clarify your doubts here.