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)]>
끝.
'MySQL, MariaDB' 카테고리의 다른 글
Last_SQL_Errno: 1032 Last_SQL_Error: Could not execute Delete_rows_v1 event on table (0) | 2019.01.31 |
---|---|
ERROR 1201 (HY000): Could not initialize master info structure for ''; (0) | 2019.01.31 |
MySQL/MariaDB replication 유지하며 마스터 mysql-bin.xxxxxx 로그 삭제 (0) | 2019.01.18 |
replication (0) | 2018.06.26 |
CentOS7 nginx, mariadb10, php-fpm 설치 (0) | 2017.01.05 |