1130-host ... is not allowed to connect to this MySql server,访问权限不够

问题描述:

               别人连接我mysql服务器时提示:1130-host  ...  is not allowed to connect to this MySql server

               

原因:自己本地mysql服务器设置的权限只能本地访问

解决:cmd进入到mysql,有不会的可以参考:https://blog.csdn.net/Demis_demis/article/details/84257663

mysql>use mysql;

mysql>update user set host = '%' where user ='root';    //这样就赋予了任何主机访问数据的权限

再次尝试远程访问数据库就可以啦(如果还不行就看一下防火墙有没有关)

猜你喜欢

转载自blog.csdn.net/Demis_demis/article/details/85211722