mysql5.7.25密码改简单的方法

  在 vim /etc/my.cnf配置文件中增加:

  validate_password=off

  default_password_lifetime=0

  重新启动

  执行:update mysql.user set authentication_string=password('123456') where user='root' ;

mysql8.0修改用户密码

ALTER USER 'root'@'localhost' identified by 'shenL1234!';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'shenL1234!';
flush privileges;

 

相关文章:

  • 2021-08-01
  • 2021-05-07
  • 2021-12-03
  • 2021-12-03
  • 2021-12-13
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2021-06-17
  • 2021-10-11
  • 2021-11-09
  • 2021-09-03
  • 2021-07-24
相关资源
相似解决方案