在尝试在RHEL7上安装MySql时,我发现我们需要使用MariaDB。
我尝试在我的机器RHEL6上安装,将MariaDB.repo文件添加到/etc/yum.repos.d/,并带有以下行 -
[mariadb]
name = MariaDB-5.5.39
baseurl=https://downloads.mariadb.com/files/MariaDB/mariadb-5.5.39/yum/rhel6-amd64/
# alternative: baseurl=http://archive.mariadb.org/mariadb-5.5.39/yum/rhel6-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
https://mariadb.com/kb/en/mariadb/yum/
此后,我使用以下命令成功安装了它 -
sudo yum install MariaDB-server MariaDB-client
现在在RHEL7生产箱上,同样的步骤失败并发生以下冲突 -
file /etc/my.cnf from install of MariaDB-common-5.5.39-1.el6.x86_64 conflicts with file from package maria-libs-1:5.5.44-2.el7.x86_64
所以我理解我指的是rhel7上的rhel6 repo,可能还有一些预先安装的文件存在冲突。
但是当我执行下面的mysql / mariadb成功安装时,这里的情况会有什么不同?
sudo yum install mariadb mariadb-server
我不确定它是否在后台链接到不同的存储库,我无法访问实例以在repo设置中进一步挖掘,有人可以帮助我吗?
答案 0 :(得分:0)
您可以使用yum search mariaDB
我执行了结果与mariaDB和mariadb
结果相同 ============================= N/S matched: mariaDB =============================
mariadb-bench.x86_64 : MariaDB benchmark scripts and data
mariadb-devel.i686 : Files for development of MariaDB/MySQL applications
mariadb-devel.x86_64 : Files for development of MariaDB/MySQL applications
mariadb-libs.i686 : The shared libraries required for MariaDB/MySQL clients
mariadb-libs.x86_64 : The shared libraries required for MariaDB/MySQL clients
mariadb-server.x86_64 : The MariaDB server and related files
mariadb.x86_64 : A community developed branch of MySQL
mariadb-test.x86_64 : The test suite distributed with MariaD
Name and summary matches only, use "search all" for everything.