Pages

Wednesday, 15 June 2016

How TO Remove Mysql From Linux server

Step 1 :
Uninstall MySQL Packages
# yum remove mysql mysql-server


Step 2:
Romove MySQL Directory
Now we need to remove MySQL data directory from system which by default exists at /var/lib/mysql.
# mv /var/lib/mysql /var/lib/mysql_old_backup


Step 3:
Install MySQL Packages Again
After removing MySQL completely, install it again using yum package manager, It will re create mysql directory under /var/lib/.
# yum install mysql mysql-server

No comments:

Post a Comment