We can reset the mysql password by using the mysqld_safe
with --skip-grant-tables
option.
And there is good reason of both No answers.
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.
see also [1]: http://www.debian-administration.org/articles/442
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With