centos7 yum安装mysql出现Transaction check error: file /etc/my.cnf from install of mysql-libs

Transaction check error:
  file /etc/my.cnf from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/lib64/mysql/libmysqlclient.so.18.0.0 from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.5.59-1.el6.remi.x86_64 conflicts with file from package mariad
这个错误是出现了lib包冲突的原因:

解决方法:
使用[root@192 bin]# yum -y remove mysql-libs* 删除掉有冲突的lib就行了

你可能感兴趣的:(centos,错误集)