# 修改密码安全度检测机制
set global validate_password.policy=0;
set global validate_password.length=4;

# 修改root密码
alter user 'root'@'localhost' identified by 'newpassword';
alter user 'root'@'%' identified by 'newpassword';

# 生效
flush privileges;

重启MySQL

相关文章:

  • 2021-12-06
  • 2021-12-04
  • 2021-12-18
  • 2021-11-07
  • 2021-08-31
  • 2022-12-23
  • 2021-05-15
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2021-09-25
  • 2022-12-23
  • 2021-08-16
  • 2021-06-02
  • 2021-09-09
相关资源
相似解决方案