1130-host . is not allowed to connect to this MySql server,MySQL

这个问题是因为在数据库服务器中的mysql数据库中的user的表中没有权限(也可以说没有用户),下面将记录我遇到问题的过程及解决的方法。

遇到这个问题首先到mysql所在的服务器上用连接进行处理,C:WindowsSystem32连接数据库,修改表

mysql -u root -p
use mysql;
select host,user from user;
update user set host='%' where user='root';
flush privileges;
原文地址:https://www.cnblogs.com/h-z-y/p/14266444.html