连接mysql服务器出现Host is not allowed to connect to this MySQL server解决方法

编程入门 行业动态 更新时间:2024-10-10 06:20:48

连接mysql服务器出现Host is not allowed to connect to this MySQL server<a href=https://www.elefans.com/category/jswz/34/1770089.html style=解决方法"/>

连接mysql服务器出现Host is not allowed to connect to this MySQL server解决方法

今天在自己的服务器上下载好mysql后发现本地连接报错Host is not allowed to connect to this MySQL server

发现mysql不允许远程登陆,解决办法如下:

1.在服务器上登录mysql :  mysql -u root -p 密码

2.进入sql后执行 use mysql;

3.执行 update user set host = '%' where user = 'root';

4.执行 flush privileges;

执行完这4步后再次连接mysql服务器,就可以了。

更多推荐

连接mysql服务器出现Host is not allowed to connect to this MySQL server解决方法

本文发布于:2024-02-11 02:38:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1678690.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解决方法   服务器   Host   mysql   allowed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!