添加yum源倉庫vim
官網:centos
vim /etc/yum.repos.d/MariaDB.repourl
# MariaDB 10.3 CentOS repository list - created 2019-01-23 06:25 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
yum clean all && yum makecachecentos7
yum install MariaDB MariaDB-server MariaDB-devel -y code