centeros7远程访问mysql5.7
先启动firewall防火墙:
service firewalld start
打开3306端口:
firewall-cmd --add-port=3306/tcp --permanent
mysql授权root账户远程访问:
update mysql.user set Host='%' where HOST='localhost' and User='root';
flush privileges;
重启mysql服务器:
service mysqld restart
搞定收工!!!!
抱怨一句,今天上海好热啊