mysql连接 Host is not allowed to connect to

 时间:2024-10-14 07:13:58

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to

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

mysql连接 Host is not allowed to connect to
  • linux返回上一级目录的命令
  • 怎么用CMD命令进入D盘
  • cmd进入文件夹
  • cmd切换到d盘
  • 如何进入docker容器
  • 热门搜索
    手抄报简单 传染病手抄报内容 红军长征手抄报 关于防火的手抄报 简单英语手抄报图片 快乐手抄报 青春手抄报图片 理想的手抄报 运动会手抄报内容 读书手抄报的资料