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;

posted @ 2018-09-30 15:04  wangbiubiu  阅读(130)  评论(0编辑  收藏  举报