Centos 7 MariaDB 10.3 설치

(Last Updated On: November 11, 2019)

yum repo에 MariaDB 추가

sudo vim /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

설치

sudo yum install MariaDB-client MariaDB-server

실행 및 서비스등록

systemctl start mariadb
systemctl enable mariadb

mysql root 계정접속

sudo mysql