원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

RHEL/Rocky Linux 8.7 버전에서 MySQL 5.7 버전 설치하기

 

 

1. 전체 패키지 업데이트

# dnf update

 

 

2. 기존 MySQL 8.0용 Repository 삭제

# dnf info mysql-community-server

# dnf remove mysql-community-server

# mv /etc/yum.repo.d/mysql-community.repo /etc/yum.repo.d/mysql-community.repo.removed

# dnf clean all

 

 

3. MySQL 5.7용 yum repository 추가

# cd /etc/yum.repo.d

# vi mysql5.7.repo

[mysql57-community]

name=MySQL 5.7 Community Server

baseurl=https://repo.mysql.com/yum/mysql-5.7-community/el/8/$basearch/

enabled=1

gpgcheck=1

gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

[mysql-connectors-community]

name=MySQL Connectors Community

baseurl=https://repo.mysql.com/yum/mysql-connectors-community/el/8/$basearch/

enabled=1

gpgcheck=1

gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

[mysql-tools-community]

name=MySQL Tools Community

baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/8/$basearch/

enabled=1

gpgcheck=1

gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql

 

 

 

4. MySQL Client 및 Server 설치

# dnf install mysql-community-client

# dnf install mysql-comunity-server

 

 

5. MySQL 서비스 기동 및 부팅시 자동시작 설정

# systemctl start mysqld

# systemctl enable mysqld

 

 

 

6. DB 구성 시작

# mysql_secure_installation

 

 

 

 

 

서버에 요청 중입니다. 잠시만 기다려 주십시오...