I have a few old mysql databases and have forgotten the user passwords. I know that I can delete the old users and recreate them, but is there a way that I can display what their current passwords are in a readable form?
I thought I needed to have the old password to change it. Everything I read said <old password> <new password>. If this isn't the case, would you mind posting the correct syntax for me?
Thanks...
If you have root access to the DB, you can simply issue an Update query on the user table.
Code:
UPDATE `user` SET `Password`=PASSWORD("newpass") WHERE `User`="username"
Note the backticks, and the Password function to encode the password.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Behind the Web, Tips and Tricks for Web Development.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.