Notifications
Clear all

WordPress Forgot Password Issue Fix (Easy Guide)

1 Posts
1 Users
0 Reactions
18 Views
Posts: 301
Admin
Topic starter
(@admin)
Member
Joined: 11 months ago

If you forgot your WordPress password and can't log in, don't worry! Here are some simple ways to reset your password and get back into your website.


Method 1: Use the "Lost Password" Option

  1. Go to your WordPress login page (yoursite.com/wp-admin).

  2. Click on "Lost your password?".

  3. Enter your username or email address.

  4. Click Reset Password.

  5. Check your email for a password reset link. Click the link and set a new password.

Note: If you don’t see the email, check your spam or junk folder.


Method 2: Reset Password Using phpMyAdmin

If the reset email doesn’t work, you can change the password directly in the database.

  1. Log in to your cPanel or hosting account.

  2. Open phpMyAdmin.

  3. Select your WordPress database.

  4. Find and open the wp_users table.

  5. Locate your username and click "Edit".

  6. In the "user_pass" field, select MD5 from the dropdown menu.

  7. Type a new password and click "Go".

  8. Now, log in with your new password.


Method 3: Reset Password via functions.php File

If you can’t access phpMyAdmin, try this method using your theme’s files.

  1. Use cPanel/File Manager or FTP to open wp-content/themes/your-theme/.

  2. Open and edit the functions.php file.

  3. Add this code at the bottom:

    wp_set_password( 'NewPassword123', 1 );
  4. Save the file and refresh your website.

  5. Log in with NewPassword123.

  6. After logging in, remove the code from functions.php for security reasons.


Method 4: Reset Password Using WP-CLI (For Advanced Users)

If you have SSH access, you can use WP-CLI to change your password.

  1. Connect to your server using SSH.

  2. Run this command:

    wp user update 1 --user_pass="NewPassword123"
  3. Now, log in with your new password.


Common Problems & Solutions

1. Not Receiving Reset Email?

  • Install an SMTP plugin like WP Mail SMTP to fix email issues.

  • Check with your hosting provider to make sure emails are working.

2. Username or Email Not Working?

  • Check your database in phpMyAdmin to verify the correct email.

3. Completely Locked Out of WordPress?

  • Create a new admin account using phpMyAdmin or FTP.


Conclusion

Resetting your WordPress password is easy if you use the right method. You can try the Lost Password option, phpMyAdmin, functions.php, or WP-CLI to regain access. If you need more help, post your issue on Tech Fix Forum, and we will assist you! 😊

Topic Tags
Share: