Need help? Chat now!

Hostwinds Tutorials

Search results for:


Table of Contents


How do I reset my WordPress admin password?
How do I change my WordPress password?
Through the dashboard
From the login page
Through phpMyAdmin
Change WP password using FTP
WordPress emergency script

Resetting My WordPress Admin Password

Tags: WordPress 

How do I reset my WordPress admin password?
How do I change my WordPress password?
Through the dashboard
From the login page
Through phpMyAdmin
Change WP password using FTP
WordPress emergency script

How do I reset my WordPress admin password?

You can reset your password in 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 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 in to your WP admin dashboard and 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 a new password. Save your changes.

From the login page

If you've forgotten your password and can access the admin login page, 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.
  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
  1. Paste in your new password
  2. Choose MD5 from the dropdown
  3. Click Go

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 into 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 the 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 the password should still be changed even if you don't. Try to log in 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.

Written by Hostwinds Team  /  December 13, 2016