`
zezhao
  • 浏览: 13075 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Error Nr 1130 Host not allowed to connect to this mysql server

阅读更多

这是访问MySql权限的问题。。。

error:SQLSTATE[HY000] [1130] Host '192.168.1.*' is not allowed to connect to this MySql server

 

解决方法:

进入mysql:mysql -u帐号 -p密码

 

mysql> grant all privileges on *.* to 'root'@'%'identified by '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit

 

OK

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics