Resetting My WordPress Admin Password

How do I reset my WordPress admin password?

You can reset your password several ways. It can be changed in your WP admin dashboard, from the admin login page or by changing it in your database. It will depend on if you just want to change it or if you’ve lost it and need a new one.

It will also depend on if you have access to your WP admin dashboard or if for some reason you can’t access it.

 

How do I change my WordPress password?

Through the dashboard

If you can log into your WP admin dashboard and just want to change your password, go to Users on the left side. Choose to edit your user and towards the bottom there’s an option to generate new password. Save your changes.

 

From the login page

If you’ve forgotten your password and can access the admin login page, just click the “Lost your password?” and you’ll be emailed a link to change your password.

 

Through phpMyAdmin

If you’ve lost your password and you can’t access your dashboard or login page, don’t fret. You can still change your password.

  1. Login to cPanel
  2. Go to phpMyAdmin under the Databases section

 

Showing where the phpMyAdmin icon is located in cPanel

 

  1. Click the name of the database for your WP installation (If you don’t know which one it is, you can find it in your wp-config file)
  2. Click on the wp-users on the left
  3. Find your admin user and click edit

 

Showing how to reset a WordPress password using PhpMyAdmin in cPanel

 

  1. Paste in your new password
  2. Choose MD5 from the dropdown
  3. Click Go

 

Showing how to reset a WordPress password form using phpMyAdmin in cPanel

 

 

Change WP password using FTP

If you don’t have access to any of the above, you can also change your WordPress password through FTP.

 

  1. Login with FTP
  2. Find and download the functions.php file  – normally in public_html/wp-content/themes/nameofyourtheme
  3. Right at the top directly under the <?php, add this: wp_set_password(‘password’,’admin’);
  4. Change the password on that line
  5. Upload it back and replace the original functions.php
  6. Try to login to your WP admin dashboard

 

If successful, remove the line you added above on the functions.php file and reupload it again.

 

WordPress emergency script

If all else fails, there’s actually an emergency script that can be used. You’ll need to know what the admin username is.

Download emergency password script here.

 

  1. Create a file in the root folder where WordPress installed called emergency.php
  2. Copy the script into this file
  3. In your browser, go to yoursite.com/emergency.php
  4. Input the admin name and the password you want to use
  5. Click update

 

You should get an email, but even if you don’t, the password should still be changed. Try to login to your admin dashboard. If it works, make SURE you delete the emergency.php file that you created or anyone can come along and change the password.


Share:

Leave a Reply