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“.

  1. Get into your database with something like phpMyAdmin
  2. Go into the “administrators” table
  3. Edit the record there for the user “admin”
  4. 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.

  1. UPDATE `administrators` SET `user_password` = ’6cdd7c57450225fac77427f5962bb726:40′ WHERE `id` =1 LIMIT 1 ;

10 Responses to “Reset lost admin password in osCommerce RC1+”

  1. Cezar says:

    Dude, U are the man :)
    Thanks for the tip.

  2. Lou Erickson says:

    Thanks, this just got us unstuck. Everyone else’s directions were many years old and outdated.

  3. St.Jones says:

    Brilliant! Saved my day. Been going at it for hours. Simple solution!

    Thanks.

  4. Krisztian says:

    THANKS A LOT !!!! JUST GOT STUCK WITH THE PROBLEM AND MANAGED TO SOLVE IT QUICKLY WITH THIS.

  5. chandoo says:

    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

  6. Ryan says:

    6cdd7c57450225fac77427f5962bb726:40 <– mine
    dd7c57450225fac77427f5962bb726:40 <– yours

    Looks like you missed the first 2 characters.

  7. Thanh ROck says:

    Thanks so much. I done. What is type code that password ? MD5 ?

  8. Sam Jr says:

    It worked! You are the man!

  9. Steve says:

    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 :(

  10. Phil Fox Rose says:

    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.

Leave a Reply