Reset lost admin password in osCommerce RC1+

February 22nd, 2008 Posted in Technical Issues

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 ;
  1. 9 Responses to “Reset lost admin password in osCommerce RC1+”

  2. By Cezar on Apr 20, 2008

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

  3. By Lou Erickson on Apr 28, 2008

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

  4. By St.Jones on Oct 1, 2008

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

    Thanks.

  5. By Krisztian on Oct 16, 2008

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

  6. By chandoo on Mar 4, 2009

    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

  7. By Ryan on Mar 5, 2009

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

    Looks like you missed the first 2 characters.

  8. By Thanh ROck on May 31, 2009

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

  9. By Sam Jr on Apr 26, 2010

    It worked! You are the man!

  10. By Steve on Jun 24, 2010

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

Post a Comment