Step 1 :
Uninstall MySQL Packages
Step 2:
Romove MySQL Directory
Now we need to remove MySQL data directory from system which by default exists at /var/lib/mysql.
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/.
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