Host is not allowed to connect to this MySQL server解决方法

在装有MySQL的机器上登录MySQL mysql -u root -p密码
执行use mysql;
执行update user set host = '%' where user = 'root';这一句执行完可能会报错,不用管它。
执行FLUSH PRIVILEGES;

posted @ 2020-11-09 19:26  Bill-Lee  阅读(92)  评论(0编辑  收藏  举报