安装mysql-libs与mysql冲突的解决办法

yum install mysql-libs

因为之前安装了mysql5.5,40,报错如下:

Transaction Check Error:

  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_7.1.x86_64 conflicts with file from package MySQL-server-5.5.40-1.rhel5.x86_64


解决办法:

下载安装对应版本的MySQL-shared和MySQL-shared-compat

wget http://cdn.mysql.com/archives/mysql-5.5/MySQL-shared-5.5.40-1.el6.x86_64.rpm
rpm -ivh MySQL-shared-5.5.40-1.el6.x86_64.rpm

wget http://cdn.mysql.com/archives/mysql-5.5/MySQL-shared-compat-5.5.40-1.el6.x86_64.rpm
rpm -ivh MySQL-shared-5.5.40-1.el6.x86_64.rpm


你可能感兴趣的:(mysql-libs)