Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2553284
  • 博文数量: 245
  • 博客积分: 4125
  • 博客等级: 上校
  • 技术积分: 3113
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-25 23:56
文章分类

全部博文(245)

文章存档

2015年(2)

2014年(26)

2013年(41)

2012年(40)

2011年(134)

2010年(2)

分类: Mysql/postgreSQL

2012-08-21 09:09:28

下文记录了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的一句话:


点击(此处)折叠或打开

  1. rpm -e --allmatches --nodeps mysql mysql-server
  2. rm -rf /var/lib/mysql
–allmatches 解决了:error: “mysql-5.0.95-1.el5_7.1″ specifies multiple packages
–nodeps 解决了:error: Failed dependencies:
————-
这样mysql就被彻底删掉了


阅读(10377) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~