打开mysql.ini配置文件

一招解决 MySQL Access denied for user [email protected]

找到[mysqld],在下面添加skip-grant-tables,如下图

一招解决 MySQL Access denied for user [email protected]

然后重启MySQL服务

cmd 进入MySQL 的bin 目录下

输入命令:mysql -u root -p

出现Enter password 按下回车键

然后输入use mysql

然后输入:update user set authentication_string=password(“123456”) where user=“root”;

最后输入:flush privileges;

然后重启MySQL服务即可。

一招解决 MySQL Access denied for user [email protected]

亲测可用!

相关文章:

  • 2021-07-07
  • 2021-05-31
  • 2021-06-09
  • 2021-06-24
  • 2021-06-28
猜你喜欢
  • 2021-08-21
  • 2021-08-26
  • 2021-10-18
  • 2021-08-18
  • 2021-11-05
  • 2021-07-22
相关资源
相似解决方案