If you would like to uninstall MySQL server from your redhat/centos linux using RPM, following the below steps:
1. Double confirm if Mysql is install via RPM, command as follow
Shell> rpm -qa | grep -i mysql
Expecting output result as following
Output 1:
Shell> rpm -qa | grep -i mysql
MySQL-devel-x.x.xx-1.rhel5
MySQL-test-x.x.xx-1.rhel5
MySQL-server-x.x.xx-1.rhel5
MySQL-client-x.x.xx-1.rhel5
MySQL-shared-x.x.xx-1.rhel5
MySQL-shared-compat-x.x.xx-1.rhel5
MySQL-embedded-x.x.xx-1.rhel5
2. If you are getting similar OUTPUT 1 as your result from step 1, you may run the following command to completely remove the MYSQL from your redhat/centos linux
shell> rpm -e MySQL-*
3. After your step 2, you are expecting to already removed the MySQL installation.
you may check if your MySQL data directory (datadir) is still there. Normal MySQL data directory (datadir) locate at /var/lib//mysql
No comments:
Post a Comment