Reference Document Http://www.linuxidc.com/Linux/2016-09/135288.htm
Installation Environment: CentOS7 64-bit
Installation version: mysql5.7 version
Installing MySQL with Yum Online installation can also be installed offline, here is only a relatively simple online installation method.
https://dev.mysql.com/downloads/repo/yum/
Pull to the bottom there are download options:
Get the download path to download:
wget https://repo.mysql.com// mysql57-community-release-el7-11.noarch.rpm
Install MySQL source
Yum Install mysql57-community-release-el7--noarch.rpm
Check MySQL source
Yum grep " mysql.*-community.* "
Adjust the default version number of the MySQL Source: (Modify enabled under the corresponding version) 1 Enable 0 not enabled
vim/etc/Yum. Repos.d/mysql-community.repo
Installing the MySQL Service
Yum Install Mysql-community-server
Start the MySQL service
Systemctl Start mysqld
View service Status
Systemctl Status Mysqld
Installing MySQL in CentOS