1130 - Host'USERS-20180414H' is not allowed to connect to this MySQL server中USERS-20180414H是机器名称不同的电脑名称也不相同。
解决办法》》》
mysql -u root -p
show databases;
use mysql;
select host from user where user='root';
update user set host = '%' where user ='root';将Host设置为通配符%。
Host修改完成后记得执行flush privilegs使配置立即生效。