Linux上安装MySQL时出现不兼容的解决办法

Linux上安装MySQL时出现不兼容的解决办法

在linux 上安装mysql rpm的时候,安装不成功

MySQL-client-5.5.36-1.linux2.6.x86_64.rpm MySQL-server-5.5.36-1.linux2.6.x86_64.rpm
[root@bogon develop]# rpm -ivh MySQL-server-5.5.36-1.linux2.6.x86_64.rpm
准备中… ################################# [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64

解决办法:

[root@bogon develop]# yum remove mysql-libs
已加载插件:fastestmirror, langpacks
正在解决依赖关系
–> 正在检查事务
—> 软件包 mariadb-libs.x86_64.1.5.5.41-2.el7_0 将被 删除
–> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 perl-DBD-MySQL-4.023-5.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 1:qt-mysql-4.8.5-8.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-6.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 1:mariadb-devel-5.5.41-2.el7_0.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 qt3-MySQL-3.3.8b-51.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 perl-DBD-MySQL-4.023-5.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 1:qt-mysql-4.8.5-8.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-6.el7.x86_64 需要
–> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 qt3-MySQL-3.3.8b-51.el7.x86_64 需要
–> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.41-2.el7_0,它被软件包 1:mariadb-devel-5.5.41-2.el7_0.x86_64 需要
–> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.41-2.el7_0,它被软件包 1:mariadb-server-5.5.41-2.el7_0.x86_64 需要
–> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.41-2.el7_0,它被软件包 1:mariadb-5.5.41-2.el7_0.x86_64 需要
–> 正在检查事务
—> 软件包 mariadb.x86_64.1.5.5.41-2.el7_0 将被 删除
—> 软件包 mariadb-devel.x86_64.1.5.5.41-2.el7_0 将被 删除
—> 软件包 mariadb-server.x86_64.1.5.5.41-2.el7_0 将被 删除
–> 正在处理依赖关系 mariadb-server,它被软件包 akonadi-mysql-1.9.2-4.el7.x86_64 需要
—> 软件包 perl-DBD-MySQL.x86_64.0.4.023-5.el7 将被 删除
—> 软件包 postfix.x86_64.2.2.10.1-6.el7 将被 删除
—> 软件包 qt-mysql.x86_64.1.4.8.5-8.el7 将被 删除
—> 软件包 qt3-MySQL.x86_64.0.3.3.8b-51.el7 将被 删除
–> 正在检查事务
—> 软件包 akonadi-mysql.x86_64.0.1.9.2-4.el7 将被 删除
–> 正在处理依赖关系 /usr/sbin/sendmail,它被软件包 redhat-lsb-core-4.1-27.el7.centos.1.x86_64 需要
–> 正在使用新的信息重新解决依赖关系
–> 正在检查事务
—> 软件包 redhat-lsb-core.x86_64.0.4.1-27.el7.centos.1 将被 删除
–> 正在处理依赖关系 redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1,它被软件包 redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 需要
–> 正在处理依赖关系 redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1,它被软件包 redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64 需要
–> 正在处理依赖关系 redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1,它被软件包 redhat-lsb-4.1-27.el7.centos.1.x86_64 需要
–> 正在处理依赖关系 redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1,它被软件包 redhat-lsb-printing-4.1-27.el7.centos.1.x86_64 需要
–> 正在处理依赖关系 redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1,它被软件包 redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 需要
–> 正在检查事务
—> 软件包 redhat-lsb.x86_64.0.4.1-27.el7.centos.1 将被 删除
—> 软件包 redhat-lsb-cxx.x86_64.0.4.1-27.el7.centos.1 将被 删除
—> 软件包 redhat-lsb-desktop.x86_64.0.4.1-27.el7.centos.1 将被 删除
—> 软件包 redhat-lsb-languages.x86_64.0.4.1-27.el7.centos.1 将被 删除
—> 软件包 redhat-lsb-printing.x86_64.0.4.1-27.el7.centos.1 将被 删除
–> 解决依赖关系完成

依赖关系解决

==============================================================================================================================================================================================================================================

Package 架构 版本 源 大小

正在删除:
mariadb-libs x86_64 1:5.5.41-2.el7_0 @anaconda 4.4 M
为依赖而移除:
akonadi-mysql x86_64 1.9.2-4.el7 @anaconda 9.6 k
mariadb x86_64 1:5.5.41-2.el7_0 @anaconda 49 M
mariadb-devel x86_64 1:5.5.41-2.el7_0 @anaconda 3.3 M
mariadb-server x86_64 1:5.5.41-2.el7_0 @anaconda 56 M
perl-DBD-MySQL x86_64 4.023-5.el7 @anaconda 323 k
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
qt-mysql x86_64 1:4.8.5-8.el7 @anaconda 74 k
qt3-MySQL x86_64 3.3.8b-51.el7 @anaconda 56 k
redhat-lsb x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-core x86_64 4.1-27.el7.centos.1 @anaconda 45 k
redhat-lsb-cxx x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-desktop x86_64 4.1-27.el7.centos.1 @anaconda 0.0
redhat-lsb-languages x86_64 4.1-27.el7.centos.1 @anaconda 814
redhat-lsb-printing x86_64 4.1-27.el7.centos.1 @anaconda 0.0

事务概要

移除 1 软件包 (+14 依赖软件包)

安装大小:124 M
是否继续?[y/N]:n
Exiting on user command
您的事务已保存,请执行:
yum load-transaction /tmp/yum_save_tx.2015-11-11.10-21.50l9JU.yumtx 重新执行该事务
[root@bogon develop]# rpm -ivh MySQL-server-5.5.36-1.linux2.6.x86_64.rpm
准备中… ################################# [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.36-1.linux2.6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值