2021. 8. 2. 14:03

YUM MariaDB 저장소 추가

- 저장소에 파일 체크

yum repolist

 

- 없ㅇ을시 저장소 추가.

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

 

 

- 아래페이지에 가서. 설정을 맞추고.

 

MariaDB Repositories 탭으로 가면, 아래와 같이 설정값을 볼수가 있다.

 

https://mariadb.org/download/

 

Download MariaDB Server - MariaDB.org

REST API MariaDB Repositories Release Schedule Reporting Bugs … Continue reading "Download MariaDB Server"

mariadb.org

 

-설정값-------------------------------------------------------------------------------------------------------------------------

# MariaDB 10.6 CentOS repository list - created 2021-08-02 04:53 UTC

# https://mariadb.org/download/

[mariadb] name = MariaDB baseurl = https://mirror.yongbok.net/mariadb/yum/10.6/centos8-aarch64 module_hotfixes=1 gpgkey=https://mirror.yongbok.net/mariadb/yum/RPM-GPG-KEY-MariaDB

gpgcheck=1

------------------------------------------------------------------------------------------------------------------------------

 

- 설치 상태 확인.

rpm -qa | grep MariaDB 

 

- repo 설정.

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

 

- 설치 진행.

yum install MariaDB-server

 

 

 

- 확인.

[root@www yum.repos.d]# rpm -qa | grep MariaDB
MariaDB-common-10.3.27-1.el6.x86_64
MariaDB-client-10.3.27-1.el6.x86_64
MariaDB-server-10.3.27-1.el6.x86_64
MariaDB-compat-10.3.27-1.el6.x86_64

 

 

DB 시작/패스워드 변경.
[root@www yum.repos.d]# /etc/init.d/mysql start
Starting MariaDB.210802 13:59:06 mysqld_safe Logging to '/var/lib/mysql/www.err'.
210802 13:59:06 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
 SUCCESS!

 

 

 

- 패스워드 변경.

[root@www yum.repos.d]# /usr/bin/mysqladmin -u root password '패스워드'

 

 

 

- 포트 확인.
[root@www yum.repos.d]# netstat -anp | grep 3306
tcp        0      0 :::3306                     :::*                        LISTEN      26208/mysqld

 

 

 

- 접속 확인.

[root@www yum.repos.d]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.3.27-MariaDB MariaDB Server

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

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> quit
Bye

 

- 부팅시 자동 시작 설정.

[root@www yum.repos.d]# chkconfig --list mysql
mysql           0:해제  1:해제  2:활성  3:활성  4:활성  5:활성  6:해제
[root@www yum.repos.d]#

Trackback 0 Comment 0