$ mysql -h 192.168.1.8 -u root -p Enter password: ERROR 1130: Host '192.168.1.110' is not allowed to connect to this MySQL server
$ telnet 192.168.1.110 3306 host 192.168.1.4 is not allowed to connect to this mysql server
mysql 默认安装是不允许远程登陆,只能通过localhost登录,因此你需要为你访问主机授权.
一. 主机授权
1.1 为主机192.168.1.110授权
$ mysql -u root -p Enter password: mysql> use mysql mysql> GRANT ALL ON *.* to root@'192.168.1.110' IDENTIFIED BY 'mypass'; mysql> FLUSH PRIVILEGES;
1.2 为所有主机授权
GRANT ALL ON *.* to 'root'@'%' IDENTIFIED BY 'scada'; flush privileges;
二. 修改用户密码
update mysql.user set password=PASSWORD('mypass') where user='root'; #5.5 update mysql.user set authentication_string=password('mypass') where user='root'; #5.7 flush privileges;
三. 添加用户账号
创建账号 greentest,指定数据库mygreen。
mysql> CREATE USER 'greentest'@'%' IDENTIFIED BY 'greentest'; mysql> GRANT ALL ON mygreen.* TO 'greentest'@'%' IDENTIFIED BY 'greentest'; 1044 - Access denied for user 'root'@'%' to database 'mygreen'
由于权限问题,运行报1044错误,在mysql服务器上执行上述代码,一切正常。
相关推荐
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在...
1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到mysql ...
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
在使用MySQL数据库时,可能会遇到"Host 'localhost' is not allowed to connect to this MySQL server"的错误信息,这是由于MySQL的安全机制所致。MySQL的安全机制是基于主机名和用户名的组合来控制访问权限的。因此...
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 //赋予任何主机访问数据的...
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 ...
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server www.jb51.net 出现原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新 登陆出现“Host ‘localhost’ is...
授权法,介绍远程用户连接mysql数据库,给任意远程主机授权访问mysql server的权限。
报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用l
安装完MySQL以后会自动创建一个root用户和一个匿名用户,对于root大家都非常注意,而这个匿名用户很多人都会忽略,大概是因为匿名用户默认设定为只能在本地使用的缘故吧。 但如果MySQL要作为数据库提供给Web服务器...
设置隐试打开PPT报错 Hiding the application window is not allowed
本地计算机ip:192.168.1.100 ... ERROR 1130 (HY000): Host '192.168.1.100' is not allowed to connect to this MySQL server 出现这种情况是因为mysql服务器出于安全考虑,默认只允许本地
Host PC1, attached to the 192.168.1.128/27 subnet should be allowed complete access to the 192.168.1.96/27 subnet b. All other hosts attached to the 192.168.1.128/27 subnet should be allowed only ...
前言 ...看起来像是没办法访问到数据库连接的...ERROR 1130: Host *.*.*.* is not allowed to connect to MySQL 看到这个错误后,上网一查,基本上有挺多解决方案,但是为什么还要专门写一下呢? 答案是:网上很多都是my
Android WebView 报 Not allowed to load local resource错误的解决办法 博客地址:http://blog.csdn.net/yuzhiqiang_1993/article/details/76228541
最近在学习Django框架,于是在windows系统上搭建了Django环境,并使用虚拟机ubuntu系统上安装的mysql作为项目的远程数据库,前几天一直用得好好的,今天在...可以看到绑定的ip地址为192.168.240.128,这是当时设置mys
解决办法:mysql 出现Host 'localhost' is not allowed to connect to this MySQL server 错误。