成功解决错误1130- Host xxx is not allowed to connect to this MySQL server

前言

使用Navicat远程访问MySQL 的时候,报错:

Host xxx is not allowed to connect to this MySQL server

问题解决

进入到数据库里面,

设置host为“%”后,便可以允许远程访问

update user set host = '%' where user ='root';

 刷新权限

flush privileges; 

 

posted @ 2021-06-06 11:18  前方一片光明  阅读(316)  评论(0编辑  收藏  举报