linux mysql不能远程登录

service iptables stop 

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<root-password>' WITH GRANT OPTION

flush privileges;

./nginx -s reload重启NGINX

原文地址:https://www.cnblogs.com/qiqisx/p/9747351.html