Forgotten password links
Always use the forgotten password links where possible before moving on to the other options listed on this page.
Reset via database in Magento 1
Magento stores passwords in the admin_user table in salted MD5 format. In the unusual case that you are unable to access your store and the forgotten password link is not working, you can update the password by editing this hash directly.
- Access your database via the command line or a tool like PhpMyAdmin.
- Navigate to the admin_user table, find the user you need to reset and you will see one column titled password. There you should see an entry like this:
- The left side is the hash for your password while the right side of the colon is the salt. Since cracking this is not very likely for you, we want to use own md5. To do this, use a tool that will convert your password/string to md5 such as this site or similar tools. – http://md5.my-addr.com/md5_salted_hash-md5_salt_hash_generator_tool.php
- In your tool of choice generate the password hash either with the same salt from the admin_user table or generate a new one.
- Insert or copy the new hash with salt into the password field in the same format with the password hash on the left and the salt on the right of the colon.
- Test your new login and it should now let you into your admin.
Reset using n98-magerun
Any server running Mojo Host Manager can utilize n98-magerun, a very useful 3rd party tool. To reset your password run the command n98-magerun admin:user:change-password from the root of your Magento install. Then follow the prompts:
Reset using n98-magerun2
If you are using Magento 2, then the command is identical to n98-magerun for Magento 1, but the password requirements are more stringent and require numbers.