gpfeisoft

mysql强更改root密码

在丢失root密码的时候,可以这样

要先停掉 mysql服务

  mysqld_safe --skip-grant-tables&

  mysql -u root mysql

  mysql> UPDATE user SET password=PASSWORD("new password") WHERE user=\'root\';

  mysql> FLUSH PRIVILEGES;

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-01
  • 2021-08-04
  • 2018-10-02
  • 2021-12-17
  • 2021-07-01
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-08-29
  • 2022-12-23
  • 2021-06-27
  • 2021-07-12
相关资源
相似解决方案