본문 바로가기
MariaDB

mariadb 10.4 설치 / centos

by 더킹123 2021. 6. 22.
728x90

mariadb 10.4 설치 / centos

1. 설정파일 생성

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

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

2. yum 설치

yum install -y MariaDB

3. 서비스 실행

systemctl enable mariadb   
systemctl start mariadb
 
 
**root 패스워드 변경

mysql_secure_installation

  Enter current password for root (enter for none): enter
  Set root password? [Y/n] y
  Remove anonymous users? [Y/n] y
  Disallow root login remotely? [Y/n] n
  Remove test database and access to it? [Y/n] n
  Reload privilege tables now? [Y/n] y

728x90

댓글