> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resetting the WordPress administrator password

> Locked out of your WordPress admin? Learn alternative methods to change your password without email recovery.

This article describes how to reset the WordPress administrator password. Normally, if you forget your password, you can use the WordPress password recovery feature to reset the password by e-mail. However, if this option is unavailable (for example, if e-mail on your site is not working correctly) you can use one of the following methods.

## Method #1: Reset the administrator password through Softaculous

You can use Softaculous to log in to WordPress, and then change the administrator password. To do this, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. On the **Tools** page, in the **Softaculous Apps Installer** section, click **Softaculous Apps Installer** (or any of the icons under **Scripts** or **Categories**).

3. In the icon list at the top right, click the ![All Installations icon](https://static.hosting.com/kb/kb-softaculous-installations-icon.png) icon ( **All Installations** icon). The list of installed applications appears.

4. Locate the WordPress installation, and then click the ![Softaculous Admin icon](https://static.hosting.com/kb/kb-softaculous-admin-icon.gif) icon ( **Admin** icon). Softaculous logs you in to WordPress.

5. In WordPress, on the left sidebar, click **Users**, and then click **All Users**.

6. Locate the administrator account, and then click **Edit**.

7. Under **Account Management**, next to **New Password**, click **Generate Password**.
   > 📘 Note
   >
   > You can use the automatically generated password, or you can type a new custom password.

8. Click **Update Profile**. You can now log in to WordPress as the administrator by using the new password.

## Method #2: Reset the administrator password using WP-CLI

You can reset the administrator password using the WP-CLI command line program. For information about how to do this, please see [this article](/docs/administering-wordpress-from-the-command-line).

## Method #3: Reset the administrator password in the database

You can manually reset the WordPress administrator password in the database directly. To do this, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).

2. In the **Databases** section of the cPanel home screen, click **phpMyAdmin**.

3. In the left-hand pane of phpMyAdmin, click the WordPress database. A list of tables in the database appears.
   > 👍 Tip
   >
   > Typically, the WordPress database is **username\_wpXXX** , where *username* represents your cPanel username, and *XXX* is a three-digit number.

4. On the top menu bar, click **SQL**.

5. Copy and paste the following statement into the SQL query text box. Replace ***new\_password*** with the new password, and replace ***admin\_username*** with the administrator's username.

```sql theme={null}
UPDATE `wp_users` SET `user_pass` = MD5( 'new_password' ) WHERE `wp_users`.`user_login` = "admin_username";
```

<Note>
  * This SQL statement creates an MD5 hash of the password you specify. WordPress requires that passwords are stored in the database in this format. If you try to update the password field directly with the new password, you will be unable to log in to WordPress.

  * Some versions of WordPress use the table name *wp\_users*, while other versions use a different name (for example, *wpe6\_users* ). If your WordPress version uses a table name different from the one in the above statement, use it instead.
</Note>

6. Click **Go**. phpMyAdmin updates the database with the new password.

7. You can now log in to WordPress as the administrator by using the new password.

## Related articles

* [Administering WordPress from the command line](/docs/administering-wordpress-from-the-command-line)
