# Reset WordPress Admin Password

Having trouble logging into the administration section of your WordPress website and the password recovery via email option isn't working? Don't worry. In these cases, you can always just change your administrator account password in the website's database by using **phpMyAdmin**.

You can typically access the database through the company hosting your website. As a IONOS customer, you can access your databases with phpMyAdmin just by logging into your account.

- Open the database of your WordPress website with phpMyAdmin.

---

### Tip

The database of your WordPress website is defined in the file **wp-config.php**.

---

- Access your webspace via sFTP.
- View the sFTP Connection Settings.
- Open the file **wp-config.php** in the WordPress directory and search for **DB\_NAME**.
- You should now see the following entry:

```none
define('DB_NAME', 'databasename-my-wordpress-website');
```

- Open the **User** table**.**
- Search for your user name, and at the beginning of the line, choose **Edit.**

[![Image: phpMyAdmin](https://www.ionos.ca/digitalguide/fileadmin/_processed_/5/3/csm_wordpress-phpmyadmin-user-table-de_82a1dddced.webp "phpMyAdmin")](https://www.ionos.ca/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/wordpress-phpmyadmin-user-table-de.png) phpMyAdmin       - In the **uPassword** field, delete the hash value entry and enter your new password as a hash value.
- To create a hash, you can use the [md5 hash generator](https://www.miraclesalad.com/webtools/md5.php "md5 hash generator.").

[![Image: phpMyAdmin-Benutzer editieren](https://www.ionos.ca/digitalguide/fileadmin/_processed_/3/d/csm_wordpress-phpmyadmin-user-table-edit-de_2881940d6a.webp "phpMyAdmin-Benutzer editieren")](https://www.ionos.ca/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/wordpress-phpmyadmin-user-table-edit-de.png) phpMyAdmin-Benutzer editieren       - Select **Save** &gt; **OK**.

You can now log in to your WordPress website with your new password (not the password hash).

## Alternative: Reset password via email

If you do not want to work with hash values, you can update your email address in the **Users** table by clicking **Edit** next to the administrator entry or double-clicking the **uEmail** field. Then, you can reset your password via email in the login window of your WordPress website using the updated email address.

[![Image: Edit user's e-mail](https://www.ionos.ca/digitalguide/fileadmin/_processed_/e/9/csm_wordpress-phpmyadmin-user-table-edit-email-de_caf5483970.webp "Edit user's e-mail")](https://www.ionos.ca/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/wordpress-phpmyadmin-user-table-edit-email-de.png) Edit user's e-mail


This is a markdown version of: [https://www.ionos.ca/digitalguide/hosting/blogs/reset-wordpress-admin-password/](https://www.ionos.ca/digitalguide/hosting/blogs/reset-wordpress-admin-password/) for AI/LLM consumption.