安装mysql提示不兼容_Linux上安装MySQL时出现不兼容的解决办法

在尝试安装MySQL-server-5.5.24时遇到了文件冲突,冲突源是已安装的mysql-libs-5.1.61。通过运行`yum remove mysql-libs`移除旧版本后,成功安装了MySQL-server-5.5.24。
摘要由CSDN通过智能技术生成

[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

file /usr/share/mysql/charsets/cp1256.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/cp1257.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/cp850.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/cp852.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/cp866.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/dec8.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/spanish/errmsg.sys 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/swedish/errmsg.sys 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/ukrainian/errmsg.sys 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-connector-odbc.x86_64          5.1.5r1144-7.el6          base

mysql-devel.i686                     5.1.61-1.el6_2.1          updates

mysql-devel.x86_64                   5.1.61-1.el6_2.1          updates

mysql-embedded.i686                  5.1.61-1.el6_2.1          updates

mysql-embedded.x86_64                5.1.61-1.el6_2.1          updates

mysql-embedded-devel.i686            5.1.61-1.el6_2.1          updates

mysql-embedded-devel.x86_64          5.1.61-1.el6_2.1          updates

mysql-libs.i686                      5.1.61-1.el6_2.1          updates

mysql-server.x86_64                  5.1.61-1.el6_2.1          updates

mysql-test.x86_64                    5.1.61-1.el6_2.1          updates

php-mysql.x86_64                     5.3.3-3.el6_2.8           updates

qt-mysql.i686                        1:4.6.2-20.el6            base

qt-mysql.x86_64                      1:4.6.2-20.el6            base

rsyslog-mysql.x86_64                 4.6.2-12.el6              base

删除mysql-libs

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

......

[root@localhost ~]# rpm -ivh MySQL-server-5.5.24-1.linux2.6.x86_64.rpm                                                                                                   Preparing...                ########################################### [100%]    1:MySQL-server           ########################################### [100%]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值