登录数据后。选择 mysql 数据库

use mysql;

修改密码

update user set authentication_string=PASSWORD("mynewpassword") where user='root';

更新密码直接报错

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

设置密码安全机制

set global validate_password_policy=0;

再更新密码,然后刷新会话

flush privileges;

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2021-07-15
  • 2021-04-13
  • 2021-07-05
  • 2021-11-28
  • 2021-09-01
相关资源
相似解决方案