Mysql navicate登陆遇到 : ERROR 1130: Host '192.168.0.102' is not allowed to connect to this MySQL server
原因:是由于没有设置登陆的权限
解决办法:
方法一:
UPDATE mysql.user SET Host='%' WHERE Host='localhost' ;
mysql>use mysql
mysql>GRANT SELECT,INSERT,UPDATE,DELETE ON [db_name].* TO [username]@[ipadd] identified by '[password]';
[username]:远程登入的使用者代码
[db_name]:表示欲开放给使用者的数据库称
[password]:远程登入的使用者密码
[ipadd]:IP地址或者IP反查后的DNS Name,此例的内容需填入'60-248-32-13.HINET-IP.hinet.net' ,包函上引号(')
方法二:
UPDATE mysql.user SET Host='%' WHERE Host='localhost' ;
GRANT ALL PRIVILEGES ON *.* TO root@"%";
FLUSH PRIVILEGES ;
上次我就是用方法一解决的问题
分享到:
相关推荐
如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在...
java.sql.SQLException: null, message from server: “Host ‘223.72.41.7’ is not allowed to connect to this MySQL server” 客户端访问时报错: 解决方法: 1,登陆服务器 mysql> use mysql; //用mysql ...
ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server www.jb51.net 出现原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新 登陆出现“Host ‘localhost’ is...
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
message from server: “Host ‘****’ is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION //赋予任何主机访问数据的...
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用l
"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到mysql ...
本地计算机ip:192.168.1.100 ... ERROR 1130 (HY000): Host '192.168.1.100' is not allowed to connect to this MySQL server 出现这种情况是因为mysql服务器出于安全考虑,默认只允许本地
前言 ...看起来像是没办法访问到数据库连接的...ERROR 1130: Host *.*.*.* is not allowed to connect to MySQL 看到这个错误后,上网一查,基本上有挺多解决方案,但是为什么还要专门写一下呢? 答案是:网上很多都是my
MySQL导入sql脚本错误:2006 – MySQL server has gone away 到如一些小脚本很少报错,但最近导入一个10+M的SQL脚本,却重复报错: Error occured at:2014-03-24 11:42:24 Line no.:85 Error Code: 2006 - MySQL ...
直接使用Navicat通过IP连接会报各种错误,例如:Error 1130: Host ‘192.168.1.80’ is not allowed to connect to this MySQL server。 经过个人验证,得到解决方法,如下: 授权法: 1.首先使用localhost登录到想...
解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....
授权法,介绍远程用户连接mysql数据库,给任意远程主机授权访问mysql server的权限。
Note: This directive is hardcoded to Off for the CLI SAPI ; Default Value: Off ; Development Value: 4096 ; Production Value: 4096 ; http://php.net/output-buffering output_buffering = 4096 ; You can ...
最近在学习Django框架,于是在windows系统上搭建了Django环境,并使用虚拟机ubuntu系统上安装的mysql作为项目的远程数据库,前几天一直用得好好的,今天在...可以看到绑定的ip地址为192.168.240.128,这是当时设置mys
to select, ranges are allowed. Examples: '1,3', '5-7,9', '-3'. Default: '-' (all). --force -f Force a command. --quiet -q Output less information. --verbose -v ...
解决:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after statement closed.