首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Centos 6.5 X86_64上MariaDB的安装

问Centos 6.5 X86_64上MariaDB的安装
EN

Stack Overflow用户
提问于 2014-03-12 20:49:35
回答 4查看 9K关注 0票数 4

当我通过"yum install MariaDB-server MariaDB-client“在CentOS6.5上安装MariaDB时,服务器显示"Transaction Check Error:

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 -------------

“同样,请推荐我。”

EN

回答 4

Stack Overflow用户

发布于 2015-04-11 01:24:45

也有同样的问题,对我来说是这样的:

运行rpm -qa | grep -i mysql,它给了我一些仍然安装的包,比如:

代码语言:javascript
复制
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

所以

代码语言:javascript
复制
yum remove MySQL-devel-advanced-5.5.27-1.el6.x86_64
yum remove ...

...you明白这一点

票数 12
EN

Stack Overflow用户

发布于 2014-03-28 21:14:48

您安装MariaDB包的顺序是什么?

你有没有先删除mysql-libs?

rpm -e --nodeps mysql-libs

然后试一试

yum安装MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared

您也可以通过运行以下命令来安装它:

代码语言:javascript
复制
rpm -ivh MariaDB-*
票数 3
EN

Stack Overflow用户

发布于 2014-05-05 18:00:02

1首先,您必须删除mysql:

代码语言:javascript
复制
    service mysql stop
    yum remove mysql

除非您的MySQL版本与您的MariaDB版本临时兼容,否则请确保删除目录/var/lib/mysql。(我可能仍然会删除它。)

2一旦mysql消失,您需要将适当的存储库添加到yum。MariaDB在这里提供了存储库的配置器:

代码语言:javascript
复制
    https://downloads.mariadb.org/mariadb/repositories/

它将为您提供需要放入/etc/yum.repos.d/下扩展名为.repo的文件中的代码。

3请在此处找到您的MariaDb版本所需的确切软件包:

代码语言:javascript
复制
    https://mariadb.com/kb/en/about-the-mariadb-rpm-files/

您需要MariaDB-compat来实现MySQL兼容性(包括MariaDB 10.x中的InnoDB支持)。

4开始安装:

代码语言:javascript
复制
    yum install MariaDB-server MariaDB-client MariaDB-compat MariaDB-shared

5安装后,您应该做的第一件事就是保护对它的访问。运行:

代码语言:javascript
复制
    mysql_secure_installation

好了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22352110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档