创建yum repo for MariaDB-5.5.58
# vim /etc/yum.repos.d/MariaDB.repo
文件内容如下:
# MariaDB 5.5 CentOS repository list - created 2017-12-11 12:25 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
#baseurl = http://yum.mariadb.org/5.5.58/centos7-amd64/ #这个地址如果太慢,就用下面地址
baseurl = http://mirrors.neusoft.edu.cn/mariadb//mariadb-5.5.58/yum/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
# yum clean all
# yum make cache
创建目录,用来下载版本文件
# mkdir -p /opt/MariaDB_download
cd $_
yum install --downloadonly --downloaddir=./ MariaDB-server MariaDB-client
//也可以直接http下载:
http://mirrors.neusoft.edu.cn/mariadb//mariadb-5.5.58/yum/centos7-amd64/