Skip to main content

Installation

Install on CentOS 7

URL: https://downloads.mariadb.org/mariadb/repositories/#mirror=mephi&distro=CentOS&distro_release=centos7-amd64--centos7 

/etc/yum.repos.d/MariaDB.repo

# MariaDB 10.5 CentOS repository list - created 2021-05-08 02:51 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

安裝開始

yum install MariaDB-server MariaDB-client
Starting MariaDB
systemctl start mariadb.service
systemctl enable mariadb.service
systemctl status mariadb.service
Securing MariaDB
mysql_secure_installation