当我在Centos 6.5上安装MariaDB时,通过" yum install MariaDB-server MariaDB-client"然后服务器显示"交易检查错误:
file /usr/share/mysql/czech/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/english/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/french/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/german/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of MariaDB-server-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
file /etc/my.cnf from install of MariaDB-common-10.0.9-1.el6.i686 conflicts with file from package mysql-libs-5.5.36-1.el6.remi.x86_64
Error Summary
-------------
"请建议我同样的。
答案 0 :(得分:12)
有同样的问题,对我来说这是有用的:
运行rpm -qa | grep -i mysql
这给了我一些仍然安装的软件包:
MySQL-devel-advanced-5.5.27-1.el6.x86_64
MySQL-shared-advanced-5.5.27-1.el6.x86_64
mysql-connector-odbc-5.3.4-1.x86_64
MySQL-client-advanced-5.5.27-1.el6.x86_64
所以
yum remove MySQL-devel-advanced-5.5.27-1.el6.x86_64
yum remove ...
...你明白了
答案 1 :(得分:3)
您安装MariaDB软件包的顺序是什么?
你先删除了mysql-libs吗?
rpm -e --nodeps mysql-libs
然后尝试
yum install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
您也可以通过运行:
来安装它rpm -ivh MariaDB-*
答案 2 :(得分:0)
[1]首先,你必须删除mysql:
service mysql stop
yum remove mysql
确保删除目录/ var / lib / mysql,除非您的MySQL版本与您的MariaDB版本兼容。 (我可能会删除它。)
[2]一旦mysql消失,你需要将适当的存储库添加到yum。 MariaDB在这里提供了一个存储库配置器:
https://downloads.mariadb.org/mariadb/repositories/
它会在/etc/yum.repos.d /
下为您提供放入扩展名为.repo的文件所需的代码[3]在这里找出您的MariaDb版本所需的确切包裹:
https://mariadb.com/kb/en/about-the-mariadb-rpm-files/
你需要MariaDB-compat来兼容MySQL(包括MariaDB 10.x中的InnoDB支持)
[4]开始安装:
yum install MariaDB-server MariaDB-client MariaDB-compat MariaDB-shared
[5]安装后首先要做的就是保护对它的访问。运行:
mysql_secure_installation
完成。
答案 3 :(得分:0)
我遇到了同样的问题。
也许你可以找到一个冲突文件,并尝试重新加载,就像这样......
rpm -qf /usr/share/mysql/english/errmsg.sys
我收到了这个包裹。 MariaDB的-库,5.5.35-3.el7.x86_64 删除此软件包后,您可以安装MariaDB。
yum remove mariadb-libs-5.5.35-3.el7.x86_64