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

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

[root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm 
Preparing...                ########################################### [100%]
        file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64
        file /usr/share/mysql/charsets/cp1251.xml from install of MySQL-server-5.5.24-1.linux2.6.x86_64 conflicts with file from package mysql-libs-5.1.61-1.el6_2.1.x86_64

原因是系统已经安装了其他版本的mysql-libs包导致不兼容。

[root@localhost ~]# yum list | grep mysql   

mysql-libs.x86_64                    5.1.61-1.el6_2.1          @updates         
apr-util-mysql.x86_64                1.3.9-3.el6_0.1           base             
bacula-director-mysql.x86_64         5.0.0-9.el6               base             
bacula-storage-mysql.x86_64          5.0.0-9.el6               base             
dovecot-mysql.x86_64                 1:2.0.9-2.el6_1.1         base             
freeradius-mysql.x86_64              2.1.10-5.el6              base             
libdbi-dbd-mysql.x86_64              0.8.3-5.1.el6             base             
mod_auth_mysql.x86_64                1:3.0.0-11.el6_0.1        base             
mysql.x86_64                         5.1.61-1.el6_2.1          updates          
mysql-bench.x86_64                   5.1.61-1.el6_2.1          updates          
mysql-connector-java.x86_64          1:5.1.12-2.el6            base

删除mysql-libs

[root@localhost ~]# yum remove mysql-libs



转载于:https://my.oschina.net/u/1866821/blog/493860

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值