【mysql】mysql-libs-5.1.73和MySQL-server-5.6.37冲突
mysql-libs 和 MySQL-server冲突

系统:
[root@test temp]# cat /etc/redhat-release
CentOS release 6.8 (Final)

mysql版本:
[root@test temp]# rpm -qa|grep -i mysql
MySQL-client-5.6.37-1.el6.x86_64
MySQL-server-5.6.37-1.el6.x86_64

场景:
在CentOS 6.8系统下已经安装了mysql5.6.37服务和客户端,现在安装percona-toolkit-3,需要安装一些依赖包,安装其中的依赖包perl-DBD-MySQL报错;
使用的是yum方法安装,使用网易的网络源;

报错信息如下:
[root@test temp]# yum -y install perl-DBD-MySQL
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.73-8.el6_8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================
 Package                                Arch                           Version                                Repository                    Size
=================================================================================================================================================
Installing:
 perl-DBD-MySQL                         x86_64                         4.013-3.el6                            base                         134 k
Installing for dependencies:
 mysql-libs                             x86_64                         5.1.73-8.el6_8                         base                         1.2 M

Transaction Summary
=================================================================================================================================================
Install       2 Package(s)

Total size: 1.4 M
Installed size: 4.4 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test

Transaction Check Error:
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-8.el6_8.x86_64 conflicts with file from package MySQL-server-5.6.37-1.el6.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.73-8.el6_8.x86_64 conflicts with file from package MySQL-server-5.6.37-1.el6.x86_64
... ...
-------------


大致意思是mysql-libs-5.1.73这个包和已经安装的服务MySQL-server-5.6.37发生冲突,因为是使用yum安装,上面的mysql-libs-5.1.73只有这个版本,并没有5.6.37的版本;

后来看到有人google到一外国网页的解决方法,安装MySQL-shared-compat这个包即可,rpm -ihv MySQL-shared-compat-5.6.40-1.el6.x86_64.rpm(从官网下载即可)

尊重原创出处:https://my.oschina.net/grail/blog/158517

其大致的意思如下:



阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/debimeng/article/details/80320303
个人分类: mysql报错
想对作者说点什么? 我来说一句

MySQL-server-5.6.37-1.el6.x86_64.rpm

2017年10月12日 54.82MB 下载

没有更多推荐了,返回首页

不良信息举报

【mysql】mysql-libs-5.1.73和MySQL-server-5.6.37冲突

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭