解决Navicat 出错:1130-host . is not allowed to connect to this MySql server
可能是你的帐号不允许从远程登陆,只能在localhost登录。
你想myuser使用mypassword从任何主机连接到mysql服务器的话,在Linux命令行登录mysql客户端,执行:
mysql > GRANT ALL PRIVILEGES ON . TO ‘myuser’@’%’ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION;
mysql > FLUSH PRIVILEGES;
然后重启mysqld:/etc/init.d/mysql restart
还没有评论,来说两句吧...