How to Reset a WordPress Password via phpMyAdmin

If you cannot log in to your WordPress admin panel, you can reset your password directly through the database.

Step 1: Find Database Name

Open the wp-config.php file in your website root directory (via FTP or File Manager).

define('DB_NAME', 'your_database_name');

Step 2: Open phpMyAdmin

1. Log in to your hosting control panel.

2. Open phpMyAdmin.

3. Select your database.

Step 3: Edit User

1. Open the table [prefix]_users.

2. Find your username (e.g. admin).

3. Click Edit.

Step 4: Set New Password

1. In the user_pass field, enter a new password.

2. In the Function column, select MD5.

3. Click Go to save changes.

Your password has been updated.

Step 5: Log In

Go to:

https://your-domain.com/wp-admin/

Log in using your new password.

Alternative Method

If you still have access to the login page, you can reset your password using the standard WordPress option:

  • open the login page;
  • click Lost your password?;
  • follow the email instructions.
Important:
After logging in, WordPress will automatically rehash your password using a secure algorithm.
Questions and answers
You can find it in the wp-config.php file.
WordPress will automatically rehash the password after login.
Yes, using the Lost Password option on the login page.
Check if the correct user and database were used.