一、yum源安裝指定的版本
1)準備工做
下載安裝當前次新版
https://downloads.mariadb.org/
![](http://static.javashuo.com/static/loading.gif)
選擇rpm包,點擊
Repository Configuration Tool,
![](http://static.javashuo.com/static/loading.gif)
複製yum源
![](http://static.javashuo.com/static/loading.gif)
2)準備乾淨的,未安裝數據庫的機器
確認未安裝數據庫
rpm -q mariadb-server
![](http://static.javashuo.com/static/loading.gif)
借用前邊官方提供的yum源,從新配置yum倉庫,
vim /etc/yum.repos.d/base.repo
將複製的yum源粘貼到base.repo文件中
yum repolist 查看下已安裝好的yum源倉庫
yum install maraidb-server 安裝mariadb
![](http://static.javashuo.com/static/loading.gif)
yum repolist 查看下已安裝好的yum源倉庫
![](http://static.javashuo.com/static/loading.gif)
3)初次安裝後,運行安全加固腳本,加固(過程略)
至此,使用yum源安裝指定版本mariadb安裝完成。