300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误...

远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误...

时间:2020-02-25 04:33:13

相关推荐

远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误...

说明所连接的用户帐号没有远程连接的权限,只能在本机(localhost)登录。

解决方法:

首先按下面的步骤登录Mysql服务器

登录mysql需要切换到dos下的mysql的bin目录,进行如下操作:

mysql>use mysql;

mysql>update user set host = '%'where user ='root';

mysql>flush privileges;

mysql>select 'host','user' from user where user='root';

mysql>quit

OK。远程连接成功!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。