host 'XXX.XXX.XXX.XXX'is not allowed to connect to this MySQL server mysql远程连接报错

两步:

把mysql数据库里user表里的root用户的 host字段改成%:update user set host = '%' where user ='root';

刷新:flush privileges;

原文地址:https://www.cnblogs.com/wangbiubiu/p/9729648.html