not allowed to connect to this MySQL server

2025-05-05 13:33:09

1、在用Navicat配置远程连接Mysql数据库时遇到如下报错信息,这是由于Mysql配置了不支持远程连接引起的。

not allowed to connect to this MySQL server

3、依次执行如下命令:use mysq;select host 酆璁冻嘌from user where user='root';可以看到当前主机配置信息为localhost.

not allowed to connect to this MySQL servernot allowed to connect to this MySQL server

6、完成以上操作后,再试尝试远程连接Mysql,报错信息消失。如果再次连接出现2059报错信息,可以参考以下经验解决。

not allowed to connect to this MySQL server
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢