今天在centos上把mysql都配置好了,在linux下登录mysql都没有问题,但是在windows下用navicat远程连接连接msyql时报 is not allowed to connect to this MySQL server ,上网一查,发现是没有远程连接的权限
于是我采用新增加一个用户的方法,并赋予任意ip都可以远程连接的权限,
mysql新增用户
#mysql -uroot -proot
mysql> grant all privileges on *.* to 'test'@'%' identified by 'test' with grant option;
mysql> flush privileges;
此处'%'很重要,代表任意ip都可以远程连接,而默认的root用户只能“localhost” 所以才会报 “ is not allowed to connect to this MySQL server” 无法连接数据库!
然后在远程连接一下,发现能连接了!
问题解决! mark 一下 ^_^
相关推荐
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在...
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 //赋予任何主机访问数据的...
1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到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...
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 ...
授权法,介绍远程用户连接mysql数据库,给任意远程主机授权访问mysql server的权限。
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
# 当把table_open_cache设置为很大时,如果系统处理不了那么多文件描述符,那么就会出现客户端失效,连接不上 max_allowed_packet = 1000000000 # 接受的数据包大小;增加该变量的值十分安全,这是因为仅当需要时才...
Android WebView 报 Not allowed to load local resource错误的解决办法 博客地址:http://blog.csdn.net/yuzhiqiang_1993/article/details/76228541
设置隐试打开PPT报错 Hiding the application window is not allowed
前言 ...看起来像是没办法访问到数据库连接的...ERROR 1130: Host *.*.*.* is not allowed to connect to MySQL 看到这个错误后,上网一查,基本上有挺多解决方案,但是为什么还要专门写一下呢? 答案是:网上很多都是my
最近在学习Django框架,于是在windows系统上搭建了Django环境,并使用虚拟机ubuntu系统上安装的mysql作为项目的远程数据库,前几天一直用得好好的,今天在虚拟机上连接数据库时,出现了如下错误: 本地数据库没法...
报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用l
本地计算机ip:192.168.1.100 ... ERROR 1130 (HY000): Host '192.168.1.100' is not allowed to connect to this MySQL server 出现这种情况是因为mysql服务器出于安全考虑,默认只允许本地
解决办法:mysql 出现Host 'localhost' is not allowed to connect to this MySQL server 错误。
解决:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after statement closed.