InMotion Hosting Support Center

Navigation:

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
  6.  

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 (example.com/wp-admin)
  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.
  8.  

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. (http://example.com/emergency.php
  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

username:*****

Staff
24,082 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,
John-Paul
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!

Staff
38,359 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

Hi, 

 

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. 

 

 

Staff
38,359 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 ??

Staff
10,077 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

Staff
24,082 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,
John-Paul
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!!!!

Staff
10,077 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 ?
Staff
10,077 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.

Staff
24,082 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,
John-Paul
n/a Points
2015-10-26 8:50 am

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

n/a Points
2016-01-17 1:23 pm

thanks :D 

n/a Points
2016-01-20 12:17 pm

Hi,

sorry if I am asking a stupid question. I just installed wordpress on my raspberry pi 2. I can access my "site" by typing my ip adress on the browser. Unfortunatelly, I can not get access as an admin even though I am typing the correct username and password. Also I can't have an email sent to me. Now I really have to reset the pssword. Can you provide an analytic solution for my system (Raspbian or maybe Linux)?

Thank you in advance.

Staff
33,570 Points
2016-01-20 1:26 pm
Hello,

Are you getting any particular error? Also , what URL are you using? We can really only help with hosted solutions as that is what we primarily deal with. If you can give us a little more information (version of linux, you're using, error messages, URL), then we might be able to help. You may need to address the WordPress support forums directly if we cannot provide assistance.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2016-01-20 3:33 pm

It says that the password is incorrect. That is why I am trying to reset the password. The URL I am using to access the site is my ip adress. I am using a Raspberry Pi 2 so my OS is Raspbian, a version of Debian. If you can tell me any terminal commands I can type or any other solution I would be obliged.

Staff
33,570 Points
2016-01-20 4:39 pm
Hello Mark,

Sorry for the continuing problems with WordPress. You try to use the password recovery option if you have access to the email used when you did the install. If not, it might be quicker for you to simply delete the installation and start over. Just make sure you have access to the email that you specify during the installation so that you can recover your password if you are having problems. Make sure that you have the required database and the requirements needed for WordPress to correctly run. Here's the running WordPress on a Raspberry pi.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2016-01-20 4:51 pm

Thank you so much for the answer. How do I delete the instalation? Do I delete some files in var/www/html? 

Staff
33,570 Points
2016-01-20 5:00 pm
Hello Mark,

At least in our installation, WordPress creates a folder in the default root for the website - which I assume is different on your Raspberry Pi. Just delete that folder and the database and you can then re-install it.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2016-02-01 6:33 am

Hello, thanks for the artictle but in my case it doesn't work. For now I don't want use phpMyAdmin. I tryied chenge password by emergency.php. I got an e-mail with a new password but it dosen't work. Also I added line to funtction.php in my theme folder - no changes. Why it doesn't work?

Staff
4,340 Points
2016-02-01 12:01 pm
I'm not sure where exactly your reset is failing, but if it is at the login part then you may want to double-check your input to make sure you are putting in the reset pass correctly.
n/a Points
2016-02-15 4:37 pm

I'm an editor of someone else page.I have lost the password. How i can i get it back?

 

thanks,

guada

 

Staff
38,359 Points
2016-02-15 7:08 pm
There is a lost password link on the login page. It will send you a link to your email address.
2016-03-24 12:46 am
Excellent tutorial, thank you, now back in and working on my site
n/a Points
2016-04-14 3:35 pm

The FTP reset method is not working. ANy rips on this? I copied and pasted the code into line 2, uploaded it back to the server. But still no luck on logging in? As if nothing changed.

Staff
24,082 Points
2016-04-15 11:39 am
Hello Jason,

Thank you for contacting us. Ensure your file permissions are allowing you to edit the files. Also review the file to make sure the changes you are making are being saved.

If your problems persist, I recommend using a different method to reset your password.

Thank you,
John-Paul
n/a Points
2016-04-16 5:24 pm

Not able to access my WordPress admin , when I had access I changed my PW tested the new PW worked great. Then a couple days goes by, I attempted to access my wp-login ( to the admin panel ) , message : basically telling me no such person bla bla, anyway so I put in my user name and click the forgot PW link.. I get a new one .. attempted to get logged in and get the following:

Has anyone seen this ? I went in to my phpadmin and chaged pw again but get the same message.  Thank you in advance for any help.

website name/ is

currently unable to handle this request.

500
 
Staff
24,082 Points
2016-04-18 9:22 am
Hello AJ,

Thank you for contacting us. A 3rd party plugin, or Theme may be modifying the database. Our WordPress Troubleshooting Techniques guide should help you narrow down the cause.

If your problems persist I recommend checking the server logs for additional clues.

Thank you,
John-Paul
n/a Points
2016-05-02 11:16 am

I'm new to InMotionHosting and in process of setting up Wordpress blog.

When I try to login to WP Dashboard, it doesn't recognize my password. Used to Forgot password function but didn't receive an email.

Step 2, read your post on using PHPmyAdmin. There are two WP databases there (not sure if that's b/c I changed my original domain or b/c I loaded a theme + child theme. Not sure what to do now.

Please advise. Thank you!

Sandy

Staff
38,359 Points
2016-05-02 12:42 pm
Check in the wp_config.php file and you can find the database name.

Once you know that, go into the database in phpmyadmin and look for the wp_users table.

Open that table and you will see the user information. Remove and re-add the email information to an address you can access, then use the Forgot Password function at the login again.

Kindest Regards,
Scott M
n/a Points
2016-05-30 1:01 pm

Hi

 

I'm also trying to log into my WP admin and tried the phpMyAdmin method but still can't get in. I also had a look at my logs and found an error log stating 'Parallels Panel' does NOT match server name!? '.When retrieving the lost password it says it doesn't recognise my email address. I'm not sure what to do next.Thanks.

 

Liz

Staff
24,082 Points
2016-05-31 11:22 am
Hello Liz,

Thank you for contacting us. Try resetting your password via FTP, or using the reset script as described above.

If your problems persist, I recommend following our WordPress Troublesshooting guide.

Thank you,
John-Paul
n/a Points
2016-06-10 9:43 am

Hi

 

I'm also trying to log into my WP admin and tried the phpMyAdmin method but still can't get in. I also had a look at my logs and found an error log stating 'Parallels Panel' does NOT match server name!? '.When retrieving the lost password it says it doesn't recognise my email address. I'm not sure what to do next.Thanks.

 

Liz

Staff
33,570 Points
2016-06-10 11:57 am
Hello Liz,

I'm sorry that you're having problems with the WP Admin login. "Parallels Panel" is not an interface that we use with InMotion (we use cPanel for our server interfaces). If you are unable to recover the database using the lost password feature of WordPress and you have tried to create a new user using this tutorial, but you're still unable to log in. Then you should contact your host's technical support to see if they can provide assistance with getting into the site.

If you have any further questions, please let us know.

Kindest regards,
Arnel C.
n/a Points
2016-06-29 5:04 am

Hi Admin,

The emergency script is working but i dont know what is my admin username. How to find that?

Staff
33,570 Points
2016-06-29 11:43 am
Hell Prabhu,

If you have access to the database then you look for the Admin user in the USERS table. I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.
n/a Points
2016-07-21 12:50 am

Hi,

I tried emergency.php way but am getting a 404 error.

Can  you please help?

Thanks

Staff
11,210 Points
2016-07-21 7:23 am
Unfortunately, we cannot troubleshoot with the information you have provided. I'd suggest checking the filename and path to be sure its in the right place.
Staff
33,570 Points
2016-07-21 7:25 am
Hello Anuj,

Sorry for the problems with the script. Did you follow the directions to create the script and then place it in your website files? We need more information in order to determine why you're getting a 404. Please provide a step-by-step of what you have done so far so that we can try to duplicate the error.

Kindest regards,
Arnel C.
n/a Points
2016-07-21 9:33 am
  1. Saved the script below as a file called emergency.php to the root of my WordPress installation (the same directory that contains wp-config.php).
  2. In browser opened (mydomainname).com/emergency.php

I read in one of the threads that there is an issue with the

require './wp-blog-header.php';

statement.

Thanks

Staff
24,082 Points
2016-07-21 5:11 pm
Here is a link to our helpful article on 404 error not found pages. It provides additional information on this error.

Next, I recommend following our WordPress Trobleshooting guide, as it may help you narrow down the cause.

Thank you,
John-Paul

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

48 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

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: support@InMotionHosting.com
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!