使用系统yum或者其他方便的安装方式安装MariaDB
Mariadb官网repositories:
https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft
openSUSE
Arch Linux
Mageia
Fedora
CentOS
RedHat
Mint
Ubuntu
Debian
1. Choose a Distro CentOS
2. Choose a Release CentOS 7 (x86_64)
3. Choose a Version 10.1 [Stable]
上述操作在官网进行
然后创建相应的repo源:
# vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.1 CentOS repository list - created 2017-11-29 10:31 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
然后yum安装:
# yum install MariaDB-server MariaDB-client
安装好并配置即可使用。
CentOS 6 (x86_64) 安装MariaDB 源:
# MariaDB 10.0 CentOS repository list - created 2017-11-29 10:37 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1