1.修改MySQL配置文件

my.cnf

在[mysqld]加入 skip-grant-tables

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)解决办法



2.重启MySQL服务

3再次执行

mysql -u root -p

不需要输入密码

4.修改密码

update user set Password=PASSWORD('888888') where User='root';

下次登录就使用888888来登录


ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)解决办法

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2022-01-16
  • 2021-12-04
  • 2021-08-04
猜你喜欢
  • 2021-10-25
  • 2021-05-16
  • 2021-07-17
  • 2022-02-18
相关资源
相似解决方案