yum仓库文件
[mariadb]
name=mariadb
baseurl=https://mirror.mariadb.org/yum/11.0.1/centos7-amd64/
gpgcheck=1
gpgkey=https://mirror.mariadb.org/yum/RPM-GPG-KEY-MariaDB
安装
yum -y install MariaDB-common.x86_64 MariaDB-client.x86_64 MariaDB-devel.x86_64 MariaDB-server.x86_64
启动
[root@bogon yum.repos.d]# systemctl start mariadb
[root@bogon yum.repos.d]# systemctl enable mariadb
错误
Transaction check error:
file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-11.0.1-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.6.28-2.el7.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of MariaDB-common-11.0.1-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.6.28-2.el7.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of MariaDB-common-11.0.1-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.6.28-2.el7.x86_64
file /etc/my.cnf from install of MariaDB-common-11.0.1-1.el7.centos.x86_64 conflicts with file from package mysql-community-server-5.6.28-2.el7.x86_64
file /usr/bin/mysql from install of MariaDB-client-compat-11.0.1-1.el7.centos.noarch conflicts with file from package mysql-community-client-5.6.28-2.el7.x86_64
file /usr/bin/mysql_find_rows from install of MariaDB-client-compat-11.0.1-1.el7.centos.noarch conflicts with file from package mysql-community-client-5.6.28-2.el7.x86_64
解决
[root@bogon yum.repos.d]# yum remove mysql-community-devel-5.6.28-2.el7.x86_64 mysql-community-common-5.6.28-2.el7.x86_64 mysql-community-server-5.6.28-2.el7.x86_64 mysql-community-client-5.6.28-2.el7.x86_64 mysql-community-common-5.6.28-2.el7.x86_64