Recover MySQL root Password

后端 未结 4 699
眼角桃花
眼角桃花 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:34

    1. No
    2. No

    And there is good reason of both No answers.

    1. You can't just let any non-root user reset your root password without having full admin level access to the MySQL process on that host.
    2. MySQL passwords (like Unix passwords) encryption is 1 way street, they can be reset but cannot be decrypted back.

提交回复
热议问题