How to fix passwords problems in WordPress ?

You have forgotten your password and you had usedthe " Lost your password?" link from your WordPress login page. You have waited but you did not receive an email for you to reset your password. In this documentation we will discuss alternative ways to reset your password.

Find your mail from spam folder

Your email to reset password could have been marked as spam by your email server or desktop email client. You will need to look for it in your email server spam folder or desktop email client spam folder. Sometimes the emails are never sent because your email server requires SMTP setup, which is not  supported by WordPress, unless you use a plugin. In this case, we should look at other alternative ways to reset your password.

Ask your Web Hosting company for help

Yes, this is the most preferred method. Ask your web hosting company to help you reset your WordPress login password via your database. This way, you will not need to edit your database, and risk damaging it.

Reset Password Via phpMyAdmin

Use this solution if you have a hosting server admin panel such as cPanel and there is phpMyAdmin software installed on your cPanel.
Note: Any mistake you make, such as deleting an option will crash your site, and chances are no one will know what you did. Damage could be irreparable, this method is not recommended for beginners.

  1. Login into your cPanel and navigate to your phpMyAdmin, you may need to log into your phpMyAdmin in order to access it.
  2. Select your WordPress database.
  3. Navigate to wp_users (you may have a slightly different table name if you have changed the prefix wp_ ) and click on Browse
  4. Go to your username and click on Edit
  5. Enter a new value (your new password) into user_pass
  6. Choose MD5 from the drop-down menu that’s under Function
  7. Click Go button at the bottom to save your changes.
  8. Now you can try to login to your WordPress website with your new password.

More documentation on  WordPress.org.

Editing your functions.php

If you do not have access to phpMyAdmin, you can try using the following method.

  1. Use you FTP program to login to your web hosting server.
  2. Navigate to wp-content/themes/customizr-pro/functions.php
  3. Open up the functions.php file and scroll to the end of the page.
  4. Enter a newline and add the following codes. Replace your "YourNewPasswordHere" with your new password. The number 1 is your user ID in your WordPress users database.
    wp_set_password('YourNewPasswordHere', 1);
    	
  5. Save and upload functions.php to overwrite the copy on your server.
  6. Proceed to login to your WordPress admin.
  7. After you have log into your website, you will need to remove that code from functions.php.
  8. Use your FTP program to open up functions.php and remove the codes that you have added. Do this carefully, do not remove other codes or it's comments.
  9. Save and upload functions.php to overwrite the copy on your server.

External Resources

  1. Resetting your password (WordPress.org)
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.