1130,navicate不允许远程连接解决办法.

1、改表法 


mysql>use mysql; 

mysql>update user set host = '%' where user = 'root'; 


2、授权法 

例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。 

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 

如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql服务器,并使用mypassword作为密码 

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3'IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 

刷新


最后执行下:

flush privileges;

你可能感兴趣的:(自己踩过的坑,php日记)