java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect

原创
2017/03/28 11:16
阅读数 3.4K

可能是数据库不能被原创访问,只能是localhost访问。

打开mysql控制台,输入:

  1. use mysql ;  
  2. select user,host,password from user;
  3. update user set host = '%' where user='root';  

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

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部