配置repo源
官方yum源生成器:https://downloads.mariadb.org/mariadb/repositories/#mirror=tuna
创建并编辑/etc/yum.repos.d/MariaDB.repo
-
CentOS 6
# MariaDB 10.0 CentOS repository list - created 2017-09-04 03:23 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.0/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
- CentOS 7
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
安装MariaDB
yum install MariaDB-server MariaDB-client