---
title: "How to Change Your PrestaShop Admin Password by Database"
description: "There are times when you may forget your password. In these instances, you can have the PrestaShop admin password changed via email. If, for some reason, you do not receive the email for the new..."
url: https://www.inmotionhosting.com/support/edu/prestashop/prestashop-admin-password-database/
date: 2012-10-24
modified: 2021-03-22
author: "Scott Mitchell"
categories: ["Prestashop", "Security", "Website", "Working with Databases"]
type: post
lang: en
---

# How to Change Your PrestaShop Admin Password by Database

There are times when you may forget your password. In these instances, you can have the **PrestaShop admin password** changed via email. If, for some reason, you do not receive the email for the new password, you will not be able to log into the admin area with it.

There is a fix, however.

You will need to change your password by modifying the database directly. This can be a bit awkward and intimidating, however following the steps below should allow you to **change your PrestaShop admin password in your database** without any trouble. Click here for more information on [PrestaShop Hosting](https://www.inmotionhosting.com/prestashop-hosting).

This article assumes you are using a hosting account that uses cPanel software for managing your hosting account.

## Modifying your admin password via database in PrestaShop 1.5

1. First you will need to [log into the cpanel](https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/) for your hosting account.
2. [![file-manager](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_file-manager-pl.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_file-manager-pl.png)   Once logged in, you will need to locate the **File Manager**, found in the *Files* category, and click on the icon.  
3. [![select-config-folder](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_config-folder.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_config-folder.png)   Once in the *File Manager*, find and double click on the **config** folder. This will take you to a list of all files within that folder.  
4. Look for the **settings.inc.php file**. Highlight it by clicking on it once. Then, using the icons across the top, find and click on the **Code Edit** feature. Click **Edit** from the pop up that will appear to continue. <
5. [![select-cookie-key](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-cookie-key.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-cookie-key.png)   Once inside the **settings.inc.php** file, locate the setting named **_COOKIE_KEY** and copy the string. You can see the area below that we highlighted. You may want to save it temporarily to a word processing document such as notepad, Notepad++, MS Word, etc. Close the file once you have the key.    
6. [![select-phpmyadmin](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_phpmyadmin-pl.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_phpmyadmin-pl.png)   Go back to your cPanel and find the *Databases* category. From there, click on the **PhPMyAdmin** tool.  
7. Once inside, select (click on) the correct database for your PrestaShop 1.5 application from the list of databases on the left hand sidebar.

1. [![select-phpmyadmin](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_ps15-employee-table.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_ps15-employee-table.png)   You will then see a list of the database tables in the left sidebar. Scroll down and select the one named **ps_employee**. Note that your PrestaShop database prefix might not begin with **ps_**  
2. [![select-admin-data-row](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-admin-data-row.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-admin-data-row.png)   This opens the table data information. Find your admin user from the list of data rows and click on the **Edit** link on the right side of that particular row.    
3. [![Select Passwd in Function column](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_function-column.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_function-column.png)   Find the password row, it is named *passwd.* There are two columns you will need to edit. The first is the **Function** column.   [![Select MD5 from dropdown-menu](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-md5.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_select-md5.png)   Use the dropdown and select the **MD5** option.  
4. [![Fill in Value for passwd](https://www.inmotionhosting.com/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_passwd-value.png)](/support/wp-content/uploads/2012/10/edu_prestashop1.5_Password_Change-Password-Via-Database_passwd-value.png)   The second column is the **Value** column. For this column, paste the **_COOKIE_KEY** value you saved earlier and attach your new password directly to the end of the key with no spaces. Be sure to use a real password and not anything easy like *NEWPASS1234* that we used in the example.  
5. After you have entered the new password, scroll down to the bottom of the page and click the **GO** button to save the new information.  

You should now be able to [log into your admin area](https://www.inmotionhosting.com/support/edu/prestashop/login-to-dashboard/) with your new password.
