1. wget 설치
#yum install wget
2. yum repository Package 다운로드
#wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
3. Package 설치
#yum localinstall mysql57-community-release-el7-7.noarch.rpm
4. MySQL yum repository 활성화
#yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community 33
mysql-tools-community/x86_64 MySQL Tools Community 47
mysql57-community/x86_64 MySQL 5.7 Community Server 187
5. MySQL 설치
#yum install mysql-community-server mysql mysql-libs mysql-devel mysql-server
6. MySQL 서비스 Start
#systemctl start mysqld.service
7. 비밀번호 확인
#grep 'temporary password' /var/log/mysqld.log
2017-04-24T06:45:27.645052Z 1 [Note] A temporary password is generated for root@localhost: 패스워드
8. Secure 환경 설정
#sudo mysql_secure_installation
비밀번호 및 기타 설정 후 완료