Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.9.5. Change administrator password in PrestaShop
It is technically impossible to find out the current administrator password, as it is not stored on the site in plain text — only its hash is stored. You can only change the password to a new one.
- In the site configuration file, look for the name of the database to which it is connected.
- Open database in phpMyAdmin.
- Execute the following SQL query (use your own data):
UPDATE ps_employee SET passwd = MD5('COOKIE_KEYnew_password') WHERE email = 'admin@example.com';If the table names in the database do not start with the standard
ps_prefix, but with a different prefix, make the appropriate change in the SQL query.- Instead of
COOKIE_KEY:- If you are using PrestaShop 1.7 — specify the value of the
cookie_keyparameter from the configuration fileapp/config/parameters.php. - If you are using PrestaShop 1.5-1.6 — specify the value of the
_COOKIE_KEY_parameter from the configuration fileconfig/settings.inc.php.
- Instead of
new_passwordspecify the new administrator password. - Instead of
admin@example.comspecify the email address of the administrator account for which you are changing the password.
- Check the login to the site admin panel.