---restore content starts---
1. Download the appropriate Yum source installation package to the official website
https://dev.mysql.com/downloads/repo/yum/
2.yum Local Installation
Command: Yum Localinstall mysql57-community-release-el7-11.noarch.rpm
3. Check if the MySQL source is installed successfully
Command:yum repolist enabled | grep "mysql.*-community.*"
4. Install MySQL
Command:yum install mysql-community-server
5. Start the MySQL service
Command:systemctl start mysqld
6. Check the startup status of MySQL
Command:systemctl status mysqld
7. Boot up
Command:
systemctl enable mysqld
systemctl daemon-reload
8. Modify the root local login password:
A. Find the default password generated in/var/log/mysqld.log:grep ‘temporary password‘ /var/log/mysqld.log
B. Login: Mysql-uroot-p;
---restore content ends---
MySQL installation under CENTOS7 environment