Centos7.5 安装Mysql5.7
#yum -y install wget
#wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql-community-server
#systemctl start mysqld.service
#systemctl status mysqld.service
#grep "password" /var/log/mysqld.log
#mysql -uroot -p
>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
#yum -y remove mysql57-community-release-el7-10.noarch
>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
>FLUSH PRIVILEGES;