WordPress – Reset Password

In this article, we will learn how to reset your passwords in WordPress. There are couple of methods of resetting passwords in WordPress.

How to reset password in WordPress

1. If you want reset old password the best way is do it in Users Section:

  • Login to your WordPress admin panel.
  • Click on Users -> All Users in left dashboard.
  • Select your user from list and click Edit.
  • Under Account Management -> New Password click on Generate Password button.
  • WordPress will generate password for you, however you can edit/rewrite it.
  • Click Update Profile button.

2.In case you forgot the password, there are Lost your password function in login panel. (Note: this function working with existing email address, provided in user profile.)

  • Go to sitename/wp-admin
  • Click on Lost your password.
  • Input Username or Email associated to account.
  • Click on Get New Password button.
  • If you received message : The email could not be sent. Possible reason: your host may have disabled the mail() function. that mean something wrong with php configuration.
  • Go to your email account and following instruction.

 3.Reset WordPress password through phpMyAdmin.

  • login into phpMyAdmin
  • Click databases
  • A list of databases will appear. Click your WordPress database.
  • All the tables in your database will appear. If not, click Structure.
  • Look for wp_users in the Table column.
  • Click on the icon for browse.
  • Locate your Username under user_login
  • Click edit (may look like a pencil icon in some versions of phpMyAdmin)
  • Your user_id will be shown, click on Edit
  • Next to the user_pass is a long list of numbers and letters.
  • Select and delete these and type in your new password.
  • Select MD5 from the menu.
  • Click the ‘Go’ button to the bottom right.

4.There is also an easy way to reset your password via FTP, if you’re using the admin user.

  • Login to your site via FTP and download your active theme’s functions.php file.
  • Edit the file and add this code to it, right at the beginning, after the first <?php:
    wp_set_password( 'password', 1 );
    

    Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.

  • Upload the modified file back to your site.
  • After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

Leave a Reply

Your email address will not be published.

*