1.mariadb源配置
[root@localhost yum.repos.d]# vim mariadb.repo
[root@localhost yum.repos.d]# cat mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
[root@localhost yum.repos.d]# yum clean all
[root@localhost yum.repos.d]# yum makecache
2.mariadb安装