mysql连接 Host is not allowed to connect to

2025-05-16 20:52:21

1、1. 使用vs配置mysql的时候出现错误: Host is not allowed to connect to this MySQL server,如图所示

mysql连接 Host is not allowed to connect to

2、2. 首先打开cmd,然后定位到mysql.exe文件的位置,

mysql连接 Host is not allowed to connect to

3、3.输入命令如下后回车:mysql -u root -p

mysql连接 Host is not allowed to connect to

4、4. 进入界面如下,在输入命令: user mysql

mysql连接 Host is not allowed to connect to

5、5. 输入如图所示的命令后回车:select 'host' from user where user='root'

mysql连接 Host is not allowed to connect to

6、6.输入命令后回车: FLUSH PRIVILEGES 即可解决该问题。

mysql连接 Host is not allowed to connect to

7、7. 如果您觉得有用,记得在下方点击投票、点赞、关注、留言,小编会定期奉上更多的惊喜哦,您的支持才是小编继续努力的动力,么么哒。

mysql连接 Host is not allowed to connect to
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:50
  • 阅读量:22
  • 阅读量:25
  • 阅读量:27
  • 阅读量:84
  • 猜你喜欢