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

你可能感兴趣的:(mysql)