mysql错误:1130
ERROR 1130: Host 192.168.200.100 is not allowed to connect to this MySQL server
说明是user表里host容许本地(localhost)的访问,所以要修改成 " % "首先登录mysql

声明使用mysql数据库,因为user表在mysql中

使用:select `host` from user where user='root'; 查询一下

然后使用修改语句,修改并刷新:
修改:update user set host = '%' where user = 'root';
刷新:flush privileges;

或者重新登录几下mysql;
在重新查询,就改好了,可以连接了。
select `host`,`user` from user ;
select `host` from user where user='root';

以上作为笔记记录一下。

浙公网安备 33010602011771号