Recover MySQL root Password

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

    1) You can update user table in mysql database but only if you still have active connection with enough privileges.

    2) You cannot, passwords are not stored, only their hash values, on your login hash of your password is compared to hash stored in mysql and there is no way to find password out of hash other than trying all possible passwords hoping for hash match.

提交回复
热议问题