您的位置:首页 > 数据库 > MySQL

Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号

2018-01-08 14:45 671 查看

 Host 'XXX' is not allowed to connect tot this MySQL server ,开启mysql 远程连接

一:打开mysql控制台,输入:

1 use mysql;
2 show tables;




二:输入:

1 select host from user;
2 update user set host ='%' where user ='root';




三:进入计算机的服务界面,重新启动mysql服务就搞定啦。。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐