账号不允许远程访问服务器上的mysql数据库的解决办法host is not allowed to connect to this mysql

时间:2023-03-09 20:37:44
账号不允许远程访问服务器上的mysql数据库的解决办法host is not allowed to connect to this mysql

改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host"字段,从"localhost"改称"%"

用工具修改不起作用,还得用命令行

账号不允许远程访问服务器上的mysql数据库的解决办法host is not allowed to connect to this mysql

命令行如下:

flush privileges

账号不允许远程访问服务器上的mysql数据库的解决办法host is not allowed to connect to this mysql