I changed my password from old hash to a new hash using the following query
SET SESSION old_passwords=FALSE;
SET PASSWORD = PASSWORD('[your password]');
I found this query on https://stackoverflow.com/questions/1892607/mysql-password-hashing-method-old-vs-new. I replaced [your password] to my own password.
Now I can't log into my db again using the password I set. I was wondering is this password change forever or is the session going to expire and how long till it does.
Best Answer
According to MySQL Documentation on SET PASSWORD
However, you just been struck by lightning because the same webpage says
Your password change is forever, so to speak.
HOW TO FIX IT
Suppose your user is myuser@localhost, you can have someone with ALL PRIVILEGES run this
If you have no DBA but can restart mysql, then do this