1. Yum repo 등록

 

# cd /etc/yum.repos.d
# vi MariaDB.repo

# MariaDB 10.7 CentOS repository list - created 2022-04-16 21:02 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://mirror.yongbok.net/mariadb/yum/10.7/centos7-amd64
gpgkey=https://mirror.yongbok.net/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

 

 

2. 설치

# yum install MariaDB-server MariaDB-client

 

3. 서버시작

# systemctl start mariadb

 

4. root password 설정

# mysqladmin -u root password

 

5. 시작프로그램에 등록

systemctl enable mariadb

 

6. 버전확인

# mysql -v
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.7.3-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

 

끝.

블로그 이미지

엘로드넷

,