installing MySQL with Yum
1,wget https://dev.mysql.com/get/ mysql57-community-release-fc26-10.noarch.rpm, or download Yum's repo file installation directly on the MySQL official web address is https://dev.mysql.com/downloads/ file/?id=470891, click No Thanks, just start my download. can be downloaded.
2. After installing the repo, clear all Yum's Cache,yum clean all.
3.yum Makecache
4. Install MySQL using yum. Yum Install mysql-community*
5. After installing all MySQL components, it is recommended to modify the MY.CNF before opening the service because the initial password needs to be modified.
[Mysqld]
Add Skip-grant-tables=1
Turn on MySQL service mysqld start
6. Change the root password of MySQL
Enter MySQL table update user set Authentication_string=password (' root ') where user= ' root ';
* It is not wrong, mysql5.7 password field becomes authentication_string, if it is 5.7, please change back to password.
7 after modifying the root password, you need to change the my,cnf.
Skip-grant-tables=0
8. Restart the MYSQLD Services service mysqld restart.
Complete Luo (~~~~~~)
The Yum installation method for MySQL