Centos7 下mysql 密码重置

先停止mysql服务

mysqld_safe --skip-grant-tables &

mysql mysql> use mysql;
mysql>
update user set password=password('summer') where user='root'; #('summer') 为新设置的密码

mysql> flush privileges;
mysql> exit;

 

相关文章:

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