首页>>帮助中心>>美国服务器Linux上安装MySQL时出现不兼容的解决办法

美国服务器Linux上安装MySQL时出现不兼容的解决办法

2024/11/12 46次
美国服务器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
原因是系统已经安装了其他版本的mysql-libs包导致不兼容。这里就可以看出提示在conflicts with file from packge 后面就是我们出现问题冲突的软件。

[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%]

购买使用一诺网络美国服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3