zhijian1574

在这里插入图片描述
打开cmd进入到MySQL:
mysql -uroot -p password

输入以下语句执行命令:

alter user \'root\'@\'localhost\' identified by \'password\' password expire never; #修改加密规则 

alter user \'root\'@\'localhost\' identified with mysql_native_password by \'原密码\'; #更新一下用户的密码 

flush privileges; #刷新权限

重置密码:

alter user \'root\'@\'localhost\' identified by \'password\';//此处password为新密码

分类:

技术点:

相关文章:

  • 2022-02-06
  • 2021-06-05
  • 2021-09-28
  • 2021-09-28
  • 2021-11-08
猜你喜欢
  • 2021-09-28
  • 2021-10-28
  • 2021-09-28
  • 2021-09-28
  • 2021-11-18
相关资源
相似解决方案