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