1

我有带有 Cpanel 的 VPS Centos 6.9 服务器,该服务器安装了 mysql56。我想用 MariaDB 替换 mysql 以安装bench erpnext。我按照本教程进行操作,并且通过以下方式删除了 mysql:

yum remove mysql-server
yum remove mysql-libs 

但是,当我尝试按照教程中所述安装 MariaDB 时:

yum install MariaDB-server MariaDB-client -y

已抛出此错误:

  Transaction Check Error:
  file /usr/bin/mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/msql2mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysql_find_rows from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysql_waitpid from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlaccess from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqladmin from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlbinlog from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlcheck from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqldump from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlimport from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlshow from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/bin/mysqlslap from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/msql2mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql_find_rows.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysql_waitpid.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlaccess.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqladmin.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlbinlog.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlcheck.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqldump.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlimport.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlshow.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
  file /usr/share/man/man1/mysqlslap.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64

错误摘要

我看到了类似的Stack Over Flow question,但它对我的情况没有有用的答案。

已解决 删除 mysql-client 解决了这个问题。

yum remove mysql-client
4

1 回答 1

1

在安装 Maria 之前,您还需要删除 MySQL56-client 和任何其他 MySQL56 软件包。

于 2017-06-22T14:02:43.207 回答