Here we will cover how to reset the PrestaShop admin password from either the Administrator Dashboard or within the Database.
This is crucial if you have forgotten the admin password for the PrestaShop login. These steps will ensure that you will be able to log into your site once again.
We will cover how to modify the database via phpMyAdmin.
Related Articles
Reset PrestaShop Admin Email Address
Export Database Using mysqldump
Reset Admin Password Via PrestaShop Dashboard
- Access the PrestaShop Admin login screen and click the I forgot my password button
- A small window will popup, which will give the option to type in the Admin email address for the password reset request
- After typing the Admin email address, click the Send reset link button
- Check the administrator email for the new password to log into the PrestaShop admin dashboard
- The email message will come with a subject of [Your Store Name] Your new password
- It will be sent from the store website
TIP: Make sure to check the spam folder if you're not seeing the email. If it still isn't showing up in your inbox, ensure that you've entered the correct admin email.
Reset Admin Password Via phpMyAdmin
CAUTION: It is highly recommended to create a database backup before making any database changes.
- Log into cPanel
- Locate File Manager and enter the Document Root of the domain
- Open the app folder
- Open the config folder
- Right-click and view the
parameters.php
file
EXAMPLE:public_html/app/config/parameters.php
- Locate and copy the cookie_key to a notepad, or somewhere where you can retrieve it again
NOTE: Make sure to make note of the database_name as well, as it will be needed in the next step. - Once the COOKIE_KEY is acquired, go back to cPanel and click PHPmyAdmin in the Databases section
- Select the PrestaShop database from the left side panel
- Locate the table named employee
- Check step 6 if you're not sure which database the site is using
TIP: You can search for a term in the box that says Containing the word. Searching for "employee" will only show tables that contain the word employee.
- Check step 6 if you're not sure which database the site is using
- Click on the employee table to open it
- The prefix may differ from what is shown above
- Locate the table named employee
- Click on the Edit button for the administrator account that needs its password changed
- Look for the line called passwd
- Set the Function option to MD5
- Remove the existing value in the passwd field
NOTE: The password shown in that field is not the current password, it is only a hash of the current password and is not useful to us. - Insert the cookie_key that you got from the
parameters.php
file- Type in the desired new password directly after the cookie_key
IMPORTANT: Make sure to join the new password with the cookie_key with NO SPACE in between the password and the cookie_key.
- Type in the desired new password directly after the cookie_key
- Click GO at the bottom of the page to update the password
- The password should now be updated
This article covers PrestaShop versions 1.7.x.
If an updated version is available and not documented here, drop us a comment so we can work to get it updated for you as soon as possible!