在已安装Mysql的Centos6.9上安装MariaDB时发生冲突

时间:2017-06-22 13:57:51

标签: mysql linux mariadb centos6 erpnext

我有带Cpanel的VPS Centos 6.9服务器,这个服务器安装了mysql56。我想用MariaDB替换mysql以便安装bench erpnext。 我跟着这个tutorial,我也删除了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

1 个答案:

答案 0 :(得分:1)

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