标签:height root nec host nav 报错 bsp server 权限
具体报错:
1130-host . is not allowed to connect to this MySql server
报错原因:
是mysql未开启mysql远程访问权限导致。
解决办法:
解决办法有两种,1.改为所有可远程(连接)的,2.授权:
1.打开mysql自带的user表,找到你想开放的用户把host字段的localhost改为%,如图:
2.例如,你想root使用mypassword从任何主机连接到mysql服务器的话。
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘mypassword‘ WITH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘192.168.1.3‘ IDENTIFIED BY
‘mypassword‘ WITH GRANT OPTION;
输入命令FLUSH PRIVILEGES;
再次远程连接数据库成功。
解决Navicat 出错:1130-host . is not allowed to connect to this MySql server,MySQL
标签:height root nec host nav 报错 bsp server 权限
原文地址:https://www.cnblogs.com/SmallStrange/p/13627470.html