码迷,mamicode.com
首页 > 数据库 > 详细

远程测试mysql数据库3306端口报错

时间:2015-01-30 17:01:37      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

错误现象:
[root@localhost ~]# telnet 192.168.10.130 3306
Trying 192.168.10.130...
Connected to 192.168.10.130.
Escape character is ‘^]‘.
GHost ‘192.168.10.120‘ is not allowed to connect to this MySQL serverConnection closed by foreign host
解决方法:
具体原因是权限问题,需要重新设置外部登陆用户权限
mysql> grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option;
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit

远程测试mysql数据库3306端口报错

标签:

原文地址:http://www.cnblogs.com/qlwang/p/4262385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!