参考链接:1、2

  • 1 关闭mysqld进程 MySQL忘记密码后,修改
  • 2 以管理员身份打开cmd,输入:mysqld --skip-grant-tables
  • 3 打开第二个cmd,输入mysql
    MySQL忘记密码后,修改
  • 4 切换数据库至mysql:use mysql;
    MySQL忘记密码后,修改
  • 5 修改密码:update mysql.user set authentication_string=password('root') where user='root';

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-05-21
  • 2021-05-21
  • 2021-07-28
猜你喜欢
  • 2021-04-25
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-10-10
相关资源
相似解决方案