【问题标题】:Installation of MariaDB on Centos 6.5 X86_64在 Centos 6.5 X86_64 上安装 MariaDB
【发布时间】:2014-03-12 12:49:35
【问题描述】:

当我通过“yum install MariaDB-server MariaDB-client”在 Centos 6.5 上安装 MariaDB 时,服务器显示“事务检查错误:

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

错误摘要 -------------

" 请给我同样的建议。

【问题讨论】:

    标签: mariadb


    【解决方案1】:

    遇到同样的问题,对我来说这是有效的:

    运行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 ...
    

    ...你明白了

    【讨论】:

      【解决方案2】:

      您安装 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-*
      

      【讨论】:

        【解决方案3】:

        [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
        

        完成。

        【讨论】:

          【解决方案4】:

          我遇到了同样的问题。

          也许你可以找到一个冲突文件,然后尝试重新依赖,像这样.....

          rpm -qf /usr/share/mysql/english/errmsg.sys
          

          我收到了这个包裹。 mariadb-libs-5.5.35-3.el7.x86_64 删除这个包后,也许你可以安装 MariaDB。

          yum remove mariadb-libs-5.5.35-3.el7.x86_64
          

          【讨论】:

            猜你喜欢
            • 2016-08-20
            • 2014-10-27
            • 2015-05-11
            • 1970-01-01
            • 1970-01-01
            • 2016-08-07
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多