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.
  1. In the site configuration file, look for the name of the database to which it is connected.
  2. Open database in phpMyAdmin.
  3. 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_key parameter from the configuration file app/config/parameters.php.
      • If you are using PrestaShop 1.5-1.6 — specify the value of the _COOKIE_KEY_ parameter from the configuration file config/settings.inc.php.
    • Instead of new_password specify the new administrator password.
    • Instead of admin@example.com specify the email address of the administrator account for which you are changing the password.
  4. Check the login to the site admin panel.
Content