linux mysql不能远程登录

service iptables stop 

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

 

 

flush privileges;