数据库远程连接出现Host is not allowed to connect to this MySQL server

1.登录mysql
2.use mysql;
3.update user set host = ‘%’ where user = ‘root’;
4.FLUSH PRIVILEGES;

posted @ 2022-07-15 16:16  kAlbert  阅读(24)  评论(0)    收藏  举报