安装
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
修改ip访问权限
mysql -u root -p
use mysql;
select host,user FROM usr WHERE user='root';
update user set host= '%' WHERE user ='root';
flush privileges;
开启 3306 端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
开机启动
systemctl enable mysqld.service