How to reset my OpenCart administrator password?

Sometimes it happen. If you've forgot your administrator password in your OpenCart installation, you can reset the password accessing the database. Assuming you are hosting your OpenCart in a cPanel environment, you have access to phpMyAdmin to manage your Mysql dbases. You have to access to PhpMyAdmin and change the password for the OpenCart admin account. As you will be resetting your password to something easy like "password" it's very important you update to something more complex after you are logged in to the OpenCart Admin Dashboard for security reasons.


1- Login in your cPanel and through there to your PhpMyAdmin.

2- Open the database that your OpenCart uses.

3- Find the "user" table.

4- Edit the user with the "admin" username and change the password field to 5f4dcc3b5aa765d61d8327deb882cf99  (this string changes the admin password to "password")

5- Click the "Go" button to save the changes.

6- Now login in your OpenCart as admin using the password "password" (without the quotes).

Make sure to update your password once logged in to something complex, keeping this easy password most probably you will be hacked the next day.

Was this answer helpful? 7 Users Found This Useful (24 Votes)