Fully uninstall mysql in centos

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.