The whole process of uninstalling mysql under centos is recorded below. Some problems encountered during the uninstall process, so record them. [Root @ host ~] # Rpm-qa | grepmysqlmysql-server-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_7.1root @ host ~] # Rpm-e the whole process of uninstalling mysql under centos is recorded below. Some problems encountered during the uninstall process, so record them.
[Root @ host ~] # Rpm-qa | grep mysqlmysql-server-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_7.1mysql-5.0.95-1.el5_7.1root @ host ~] # Rpm-e mysql-server-5.0.95-1.el5_7.1warning:/var/log/mysqld. log saved as/var/log/mysqld. log. rpmsave [root @ host ~] # Rpm-e mysql-5.0.95-1.el5_7.1error: "mysql-5.0.95-1.el5_7.1" specifies multiple packages [root @ host ~] # Rpm-e -- nodeps mysql-server [root @ host ~] # Rpm-e -- allmatches mysql-5.0.95-1.el5_7.1error: Failed dependencies: libmysqlclient. so.15 () (64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.x86_64libmysqlclient.so.15 (libmysqlclient_15) (64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.x86_64 [root @ host ~] # Rpm-e -- allmatches -- nodeps mysql-5.0.95-1.el5_7.1warning:/etc/my. cnf saved as/etc/my. cnf. rpmsave [root @ host ~] # Rm-rf/var/lib/mysql [root @ host ~] #
These are my miserable experiences when I uninstalled mysql.
You may not encounter such a rough situation.
The final conclusion is a sentence for uninstalling mysql.
Rpm-e -- allmatches -- nodeps mysql-server
Rm-rf/var/lib/mysql
-Allmatches solved: error: "mysql-5.0.95-1.el5_7.1" specifies multiple packages
-Nodeps solved: error: Failed dependencies:
-----
In this way, mysql is permanently deleted.