【报错】【Mysql】ERROR 1130 (HY000): Host ‘xxxx’ is not allowed to connect to this MySQL server

运行以下命令

mysql -uroot -proot(填写自己的用户名和密码)

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

flush privileges;

select host, user from user;

再次连接即可

参考:https://blog.csdn.net/jrn1012/article/details/53231244

猜你喜欢

转载自blog.csdn.net/weixin_41728561/article/details/81364321