复制代码

为懒人提供无限可能,生命不息,code不止

人类感性的情绪,让我们知难行难
我思故我在
日拱一卒,功不唐捐
  • 首页
  • 前端
  • 后台
  • 数据库
  • 运维
  • 资源下载
  • 实用工具
  • 接口文档工具
  • 登录
  • 注册

mysql

【原创】阿里云centos安装mysql时发生安装包冲突(mysql-libs)

作者: whooyun发表于: 2017-03-11 00:11

阿里云centos安装mysql时发生安装包冲突,所以必须卸载,然后安装自己的包

>卸载命令 rpm -e mysql-libs-5.1.73-3.el6_5.x86_64
error: Failed dependencies:
 libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64
 libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64
 mysql-libs is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64

解决方法
rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64
--nodeps就是安装时不检查依赖关系
--force就是强制安装
比如你装过这个rpm的版本1,如果你想装这个rpm的版本2,就需要用--force强制安装