Reset lost admin password in osCommerce RC1+
February 22, 200810 Comments
Forgot your admin password in the newer versions of osCommerce? Either of these two fixes will reset your password to “pass“.
- Get into your database with something like phpMyAdmin
- Go into the “administrators” table
- Edit the record there for the user “admin”
- Replace the contents of the password with this:
6cdd7c57450225fac77427f5962bb726:40
Or you could just run this query, if you’re database is setup the standard way.
-
UPDATE `administrators` SET `user_password` = ’6cdd7c57450225fac77427f5962bb726:40′ WHERE `id` =1 LIMIT 1 ;

Dude, U are the man
Thanks for the tip.
Thanks, this just got us unstuck. Everyone else’s directions were many years old and outdated.
Brilliant! Saved my day. Been going at it for hours. Simple solution!
Thanks.
THANKS A LOT !!!! JUST GOT STUCK WITH THE PROBLEM AND MANAGED TO SOLVE IT QUICKLY WITH THIS.
Hi
Sorry! i did the same as u said but no way its not working for me. Could you advise me some thing better.
i changed the user name to admin, password to dd7c57450225fac77427f5962bb726:40. and i try to logged in with admin/pass.
thank you
6cdd7c57450225fac77427f5962bb726:40 <– mine
dd7c57450225fac77427f5962bb726:40 <– yours
Looks like you missed the first 2 characters.
Thanks so much. I done. What is type code that password ? MD5 ?
It worked! You are the man!
Using v2.2.rc2a, they have changed the hashing algorithm.
):
The hashed password field on the administrators table looks like (I’ve messed up some digits deliberately
cf7123a08d68fe858bfbbabd5c6c77db:Array
So “no cigar”. Thanks anyway – now to reload osCommerce
THANK YOU! Much clearer and to the point that a few other answers I hit first. This did it. We’d been hacked and the administrators table had been filled with junk. After clearing that out, did this and we were back up in minutes.