> CentOS > CentOS教程 >

centos下完全卸载mysql5.0

下文记录了centos下卸载mysql的全过程。卸载过程中遇到了一些问题,所以记录下来。
 

 

  1. [root@host ~]# rpm -qa | grep mysql
  2. mysql-server-5.0.95-1.el5_7.1
  3. mysql-5.0.95-1.el5_7.1
  4. mysql-5.0.95-1.el5_7.1
  5. root@host ~]# rpm -e mysql-server-5.0.95-1.el5_7.1
  6. warning: /var/log/mysqld.log saved as /var/log/mysqld.log.rpmsave
  7. [root@host ~]# rpm -e mysql-5.0.95-1.el5_7.1
  8. error: "mysql-5.0.95-1.el5_7.1" specifies multiple packages
  9. [root@host ~]# rpm -e --nodeps mysql mysql-server
  10. [root@host ~]# rpm -e --allmatches mysql-5.0.95-1.el5_7.1
  11. error: Failed dependencies:
  12. libmysqlclient.so.15()(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.x86_64
  13. libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2.el5.x86_64
  14. [root@host ~]# rpm -e --allmatches --nodeps mysql-5.0.95-1.el5_7.1
  15. warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
  16. [root@host ~]# rm -rf /var/lib/mysql
  17. [root@host ~]#

以上便是我在卸载mysql时的悲惨经历。
可能你遇到的情况不会这么坎坷。

最后的总结是卸载mysql的一句话:

(责任编辑:IT)