Recover MySQL root Password

后端 未结 4 737
眼角桃花
眼角桃花 2020-12-19 06:58

We can reset the mysql password by using the mysqld_safe with --skip-grant-tables option.

  1. Can we reset it without mysql restart?
4条回答
  •  醉酒成梦
    2020-12-19 07:38

    1. stop mysql service and start it in safe mode
    2. start mysqld --skip-grant-tables
    3. change password normally

    see also [1]: http://www.debian-administration.org/articles/442

提交回复
热议问题