Sunday 19 April 2020

How to remove MySql on Linux

All you have to do, just type these below commands in terminal
1.
 sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
2.
sudo apt-get autoremove -y
3.
sudo apt-get autoclean

Now remove all directories of mysql
1.
rm -rf /etc/mysql
2.
sudo find / -iname 'mysql*' -exec rm -rf {} \;

Now you have successfully removed the MySql from linux

If you again want to install then type theses commands

sudo apt install mysql-server   

Follow Haseebabbasi00.blogspot.com

No comments:

Post a Comment