1130-host '192.168.1.4' is not allowed to connect to this MySql server


1130-host '192.168.1.4' is not allowed to connect to this MySql servermysql

 

解决方法:
 
若是想容许用户root使用密码123456从任何主机链接到mysql服务器sql

mysql>grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
mysql>flush privileges;数据库

若是想容许用户root使用密码123456从ip为192.168.1.6的主机链接到mysql服务器服务器

mysql>grant all privileges on *.* to 'root'@'192.168.1.6' identified by '123456' with grantide

option;
mysql>flush privileges;
 this

若是想容许用户root使用密码123456从ip为192.168.1.6的主机链接到mysql服务器的dk数据库server

mysql>grant all privileges on dk.* to 'root'@'%' identified by '123456' with grant option;
mysql>flush privileges;
 ip

相关文章
相关标签/搜索