Centos7 yum 安装指定版本Mariadb

2020-12-18 12:57
46
0

先清理其他版本:

rpm -qa | grep mariadb

yum remove mariadb-libs

find / -name MariaDB

 

添加自定义 MariaDB yum 仓库以及版本(10.5) vim /etc/yum.repos.d/MariaDB.repo 

[mariadb]

name = MariaDB

baseurl = http://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64/

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1

 

安装、配置、启动 mariadb

yum -y install mariadb-server 

systemctl start mariadb

mysql_secure_installation

 

全部评论