在 centos 上重新安装 mysql 时发生冲突

在 centos 上重新安装 mysql 时发生冲突

我正在尝试在 centos 上重新安装 mysql。没有安装与 mysql 相关的软件包

yum list installed|grep -i mysql

但是当我安装

yum install mysql mysql-server

我遇到了冲突

Transaction check error:


file /etc/my.cnf conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/lib64/mysql/libmysqlclient.so.18.0.0 conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/czech/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/danish/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/dutch/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/english/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/estonian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/french/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/german/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/greek/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/italian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/japanese/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/korean/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/polish/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/romanian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/russian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/serbian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/slovak/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/spanish/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/swedish/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys conflicts between attempted installs of mysql55w-libs-5.5.46-1.w6.x86_64 and mariadb-libs-1:5.5.44-1.el7_1.x86_64
  file /usr/bin/my_print_defaults conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysql conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysql_waitpid conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlaccess conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqladmin conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlbinlog conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlcheck conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqldump conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlimport conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlshow conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/bin/mysqlslap conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/my_print_defaults.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysql.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysql_find_rows.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysql_waitpid.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysqlaccess.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysqladmin.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysqldump.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysqlshow.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64
  file /usr/share/man/man1/mysqlslap.1.gz conflicts between attempted installs of mariadb-1:5.5.44-1.el7_1.x86_64 and mysql55w-5.5.46-1.w6.x86_64

答案1

因为你已经安装了 mariadb,它是 mysql 的一个分支,所以保留了很多相似之处。

尝试

yum list installed | grep -i maria

相关内容