mysql远程连接10038

第一步:首先设置root用户的host为所有IP:
进入Mysql:
mysql -uroot -p
进入后use mysql
然后,update user set host=’%’ where user=’root’ and host=’localhost’;
flush privileges;
上面这一步注意分号,设置完了可以 select user,host from user表看看,设置成功没。

然后重启
service mysql restart
原文地址:https://www.cnblogs.com/changfengSven/p/6137545.html