# Forgot Your WordPress Admin Password? Ways to Reset It

https://www.voligen.com/en/knowledgebase/article/reset-wordpress-admin-password

If you've forgotten your WordPress admin password, there are several ways back in. The easiest is the e-mail reset; if the e-mail never arrives, you can set a new password through cPanel, phpMyAdmin or the command line.

![There's more than one way to reset a password: e-mail, the panel or the database.](https://www.voligen.com/templates/website/Voligen/assets/images/kb/wordpress-sifre-sifirlama.svg)

## Before you start

- Knowing your admin username or the e-mail address on the account makes things easier.
- Methods 2, 3 and 4 need your cPanel login (in the activation e-mail or under **Client Area > My Services** in the service details).

## Method 1: the "Lost your password?" link

1. Go to `https://example.com/wp-login.php`.
2. Click **Lost your password?** below the login form.
3. Enter your username or e-mail address and click **Get New Password**.
4. Open the link in the e-mail, set a new password and save it.

![1. Click the link, 2. open the e-mail, 3. save the new password.](https://www.voligen.com/templates/website/Voligen/assets/images/kb/wordpress-sifre-sifirlama-adim.svg)

> ****No e-mail?****
> 
> Check your spam folder first. If the address on the account is no longer in use, or the site can't send mail, move on to one of the methods below.

## Method 2: through the app installer

If WordPress was installed with Softaculous or WP Toolkit, you can change the admin password there.

- **Softaculous:** in **All Installations**, click the edit (pencil) icon next to your site, type a new password under **Admin Account** and save.
- **WP Toolkit:** use the login or password setting on your site's card. There's also a direct **Log in** option that signs you in as admin.

## Method 3: with phpMyAdmin

1. Open **phpMyAdmin** in cPanel and select your site's database. The `DB_NAME` line in `wp-config.php` tells you which one it is.
2. Open the `wp_users` table (the prefix may differ, e.g. `abc_users`).
3. Click **Edit** on your user's row.
4. In the `user_pass` row, pick **MD5** in the **Function** column, type the new password in the value box and click **Go**.
5. Log in with the new password. WordPress converts it to its own secure hash on first login.

> ****Careful****
> 
> Only change the `user_pass` field. Editing other fields can break the site. If in doubt, export the database as a backup first.

## Method 4: with WP-CLI (terminal)

If your account has terminal access and WP-CLI is installed, list the users and change the password from the site folder:

```
cd ~/public_html
wp user list
wp user update username --user_pass='NewStrongPassword!'
```

## After the reset

Once you're back in, save the password in a password manager and check the e-mail address on the account is current, so Method 1 works next time. If your site can't send mail, install an SMTP plugin and send through your business mailbox. We also recommend turning on two-factor authentication for the admin account.

## Troubleshooting

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| The reset e-mail never arrives | Spam folder, or the site can't send mail | Check spam; otherwise use Method 2 or 3. For a lasting fix, install an SMTP plugin. |
| Correct password, but you're sent back to the login page | Cookie or cache issue | Clear browser cookies and try a private window. |
| "Unknown username" | Wrong username | Try the e-mail address, or check `user_login` in the `wp_users` table. |
| Locked out after too many attempts | A security plugin's lockout | Wait a while, or temporarily rename the plugin's folder in File Manager. |

## Frequently asked questions

### How do I change the e-mail address on my account?

Once logged in, go to **Users > Profile**. WordPress sends a confirmation to the new address.

### MD5 isn't secure. Is this method a problem?

MD5 is only a temporary step. On the first successful login WordPress stores your password with a stronger hash.

### Who could have changed my password?

If you didn't change it and can't log in, someone may have gained access. After resetting, check the user list and follow the steps in our WordPress security guide.

If you still can't get in, open a support ticket from the Client Area or [contact us](https://www.voligen.com/iletisim). Plans built for WordPress are on the [WordPress Hosting](https://www.voligen.com/wordpress-web-hosting) page.
