InMotion Hosting Support Center


If you have ever lost or forgot your password to access the WordPress dashboard, it can be very frustrating. Luckily WordPress provides quite a few options for changing or resetting your WordPress password.

Change WordPress password from dashboard

If you already know your previous WordPress admin password, and would just like to change it, you can easily update the password from the WordPress dashboard.

  1. Login to your WordPress dashboard
  2. wordpress click on usersFrom the left hand menu, click on Users
  3. wordpress click on editHover over your admin user, then click on Edit
  4. wordpress fill out password click update profileScroll to the very bottom, fill out your new secure password twice, then click on Update Profile
  5. wordpress profile updated successfullyYou should now see that your admin profile has been updated

Reset your WordPress password via email

If you've forgotten your WordPress admin password, you can reset it via email from the WordPress dashboard login page following these steps:

  1. Go to your WordPress login page (
  2. Click on Lost you password? at the bottom
  3. Enter the Username or E-mail of your WordPress admin user, then click on Get New Password
  4. You should get an email with the subject [WordPress Site] Password Reset. The body of this email will contain a link below the text To reset your password, visit the following address, go ahead and click on that link.
  5. Type in your New password, confirm it, then click on Reset Password

Changing your WordPress password via phpMyAdmin

You can directly change your WordPress password in the database using phpMyAdmin if you forgot it.

You should only use this method if you're comfortable with working with databases in this fashion. It's also recommended that you always backup your database in cPanel prior to making any database modifications directly.

  1. Login to cPanel.
  2. click on phpmyadminUnder the Databases section, click on phpMyAdmin.
  3. click on wordpress databaseClick on the name of your WordPress database.
  4. click on wp users tableNext click on the wp_users table.
  5. click on edit wp userClick on Edit beside your WordPress admin user.
  6. paste password select md5 click goIn the user_pass field, paste your password by pressing Ctrl - V.

    From the drop-down, select MD5.

    Finally click on Go.

  7. phpmyadmin success of password changeYou should now see a success message from phpMyAdmin saying the database record was updated.

Changing your WordPress password via FTP

If you don't have access to your WordPress database, you can also reset you password with FTP.

  1. Login to your website via FTP and navigate to your theme's functions.php file and download it to your local computer.

    In my case this was /home/userna5/public_html/wp-content/themes/twentyfourteen/functions.php

  2. On line 2, right after the first <?php line add this:
  3. wp_set_password('password','admin');

    In this example, we're setting the password to password, and we're updating it for the user admin, if your admin user has a different username you'll want to be sure to use that.

    You'll also want to make sure that you're using a secure WordPress password.

  4. Upload this modified functions.php file back to your /themes folder on the server.
  5. Login to your WordPress dashboard using the new temporary password you just set.
  6. Now that you've successfully reset your password, remove the wp_set_password line from your local functions.php file, and re-upload it. This way WordPress doesn't reset the password every single time the admin dashboard is accessed going forward.

Using the Emergency Password Reset Script

If other solutions did not work, then you may wish to try using the Emergency Password Reset Script. It is not a plugin but rather a PHP script.

Important Notes

  • Using this script requires you know the admin username.
  • The script updates the admin password and sends an email to the admin's email address.
  • If you do not get the email sent, the password is still changed.
  • The script is to be placed at the root of your WordPress installation.
  • Removing the script when finished is extremely important for security reasons.

Directions to use the script

  1. Copy the emergency script from Emergency Password Script and place it into a file called emergency.php in the root of your WordPress installation.
  2. Visit the script in your web browser. (
  3. Enter in the WordPress admin username (typically admin) and the new password, then click Update options.
  4. Delete the emergency.php file from the server when you are done. Leaving this script on your account is a security risk as someone else could use it to change your password.

If you need further assistance please feel free to contact our support department.

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Unable to log into Wordpress admin
Need to reset Wordpress password
Wordpress doesn't recognize my log-in information
Wordpress login is being rejected
Wordpress login and password
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-09-25 9:05 am

plese my passeord


19,934 Points
2014-09-25 11:01 am
Hello sanjev,

Thank you for contacting us. We are happy to help, but I am not sure what you are asking for.

Could you provide more information, so we can further assist you?

Thank you,
n/a Points
2015-01-23 11:18 pm

WordPress is telling me my e-mail address is not in their database and so cannot reset my password.  I currently have no access to the admin area of my website.  HELP!

31,565 Points
2015-01-26 9:37 am
Hello Becky,

You can use the section above regarding using phpMyAdmin. Once in the wp_users table, you can then simply change your email address in the database and then use the normal method of having sending an email for password change.

Kindest Regards,
Scott M
n/a Points
2015-02-25 8:37 pm

Fantastic help. Used the PHP thingy and changed the email address to rest my password. Awesome thanks.

n/a Points
2015-02-25 8:40 pm
Great already
n/a Points
2015-06-15 2:04 pm



I'm trying to reset my Wordpress password with the phpMyAdmin (because I lost it)

I'm doing exactly as the video, but it doesnt work. 



31,565 Points
2015-06-15 3:22 pm
Hello Kim,

Have you not had success in having WordPress send you a password reset email?

Kindest Regards,
Scott M
n/a Points
2015-06-16 1:06 pm

Yes I tried, they say there is no email or username with my information ??

7,033 Points
2015-06-17 1:02 am
Hello Kim,

If you follow the steps in the guide (not necessarily the video) it should work as I just did the same actions on a wordpress website I have installed.

Best Regards,
TJ Edens
n/a Points
2015-07-18 7:03 am

Downloaded WP (via Hostgator) 2 days ago, but get the error message, "You have not logged in since 2011" and that I should reset my password. But I have tried reseting my password via my Hostgato cpanel, and still get the same message. I have tried doing this via email from the WP site, but even though I have tried this about ten times over the past two days, I have not received an email from WP

19,934 Points
2015-07-20 2:30 pm
Hello John,

Thank you for contacting us. I recommend checking the database name for WordPress. This will allow you to confirm you are resetting the admin password in the correct database.

Next, check your DNS, to ensure you are pointed to the correct server. We can help you troubleshoot this further, but will need to know the domain name.

Thank you,
n/a Points
2015-08-09 4:50 am

Thanks a lot for this post.

I woke up today and could not access my WP admin backend, then om my site's frontpage, I saw CYBERLORD was here! I knew instatntly that I've been hacked. I stumbled on this post and I was able to reset my password via PHPMyAdmin.

Thanks a lot InMotion Hosting. You guys rock!!!!

7,033 Points
2015-08-10 8:25 am
Hello Victor,

I am glad that you found this article helpful but not that you got hacked. I would suggest the following article to help prevent a hack in the future.

Best Regards,
TJ Edens
n/a Points
2015-10-13 9:07 am
I am trying to change password from phpmyadmin panel and also tried to login but still no luck. Will you please give me any solution ?
7,033 Points
2015-10-13 11:37 am
Hello Surendra,

When you are changing the password field, please be sure that you are using your password after it has been converted to a MD5 hash. You can use a MD5 generator and update the field.

Best Regards,
TJ Edens
n/a Points
2015-11-04 3:52 pm

Mr Edens, you seem to have some good knowledge of these password problems.. Our church has a site set up for one of our foundations and the ones who did it have migrated to other areas of the country  and cannot remember all they did to set it up and the user name and password..only guess's at this point.


I need to take over and get into the site which I have tried with the info they gave me without success.

Can we do a restart "Sort of" and keep the info and reset the password and confirm the user namee etc.

Let me know.

19,934 Points
2015-11-04 5:37 pm
Hello Ron,

Thank you for contacting us. Yes, you can reset your WordPress password from PHPmyAdmin, as described above.

If you have any further questions, feel free to post them below.

Thank you,
n/a Points
2015-10-26 8:50 am

i trid to reset my password via phpMyAdmin and its working.thanks for you tutorial.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

19 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!