What should you do if you’ve forgotten or lost your WordPress Admin password?
Step one of course would be to fill in your username and your email into the lost password form.
But what if you don’t know one of either your username or your email?
Are you out of luck?
Not if you have admin access to your server.
First things first.
- login to your server admin account (cPanel, Hsphere, Plesk, etc…)
- open up PHP MyAdmin (see your host’s help file)
- open up your WordPress weblog database
- don’t panic when you see the complicated screen
- click on wp_users in the left hand column
- choose browse from the top menu
- you will see all your users with usernames and passwords
- go back to the login screen
- request a new password
- if necessary modify the email to one which will come to you
If you want to make your life miserable you can replace the hash key instead and login directly. But why bother when you can just go back to using the standard interface.
I’m sure I’ve saved at least one person a call to his or her server admin with this info.
Enjoy posting in your newly recovered WordPress weblog!
Alec Kinnear
Alec has been helping businesses succeed online since 2000. Alec is an SEM expert with a background in advertising, as a former Head of Television for Grey Moscow and Senior Television Producer for Bates, Saatchi and Saatchi Russia.
Thanks man you just helped me, btw i wondered why my wordpress doesn’t want to send the password to my email and it send it to my gmail account ?
I guess that’s because you must have used Gmail id in your profile rather than your other email. WordPress always sends to email mentioned in your profile.
Hi Alec,
I just tried above “steps”, but I could not make it work?!
I made it till step no. 7, but when I go back and request a new password it just sends the same password and activation key (which doesn’t work) to my email.
You can try it yourself if you want: http://www.bodyfitdk.dk/wp-login.php?action=rp&key=61e1b96b
Can I just edit the password for the user via the PHP MyAdmin?
Best regards
Claus
Thanks Rohit, you’re absolutely right.
Hello Claus,
Yes, you can edit the password for the user via PHP Admin but you have to edit it as a hash key. I’ve linked to instructions above.
Good luck!
PS. There seems to be something wrong with your WordPress install as these instructions should work without having to edit the password directly.
Hi!
I hope your info will help.
I’m using WP, hosted on Godaddy.
If I understand correctly, I can log into my Godaddy account and fix this – correct?
Thanks, Fred
Hi Fred,
If you have PHP MyAdmin over at GoDaddy, yes. I don’t have GoDaddy hosting and from my frustrating experiences administering domains at GoDaddy don’t plan to (ads and popups all over the place). It’s quite possible that you don’t have an easy way to administer your database at GoDaddy.
But I’m hoping for the best for you. Good luck.
I lost my WordPress password and the email account I used no longer exists. I’d like to follow your instructions, but I don’t even understand step 1. What’s a server admin account? I never saw the names cPanel, Hsphere, Plesk… Sorry for being such a nongeek. Is there still hope?
Thanks mate your a life saver, well time saver.
Anyway your advice worked.
Cheers
Glad it helped Lawrie.
Odile, I’m sorry but this technique requires a basic knowledge of how to administer a web hosting account. If you are still having issues, you could send a link to this article to your server help desk and ask them to follow the steps for you.
Depending on your hosting company, they will do this for you or not. I recommend Cartika as they do help with admin when you need it.
Thank you for this post! Worked like a charm and I’m back to blogging.
Thanks, everyone, I did write to the server and they sent me a new password.
Odile
Great advice, thanks! You just saved me a lot of time and frustration with this post!
How about if I have a blog that is for now only local (mail not configured) – then what?
Hello Doug,
Replace the hash key and log in directly. Instructions linked above. I’d be surprised if your local weblog can’t mail but I suppose it depends on configuration.
Great Tip. Saved me a lot of time.
Thanks Man.
It worked for me.
Wish you luck !
Thanks for this! I was trying to get into a neglected site and for the life of me I couldn’t remember my username or password. Just opening PHP MyAdmin and seeing the username tripped the memory locks and I remembered the password!
Hello Patty,
That’s wonderful that you were able to remember. Learning the basics of phpAdmin can be a great help as a webmaster.
hey man,….thanks for saving me another five hours of stress this afternoon….
pages like this make me believe in the goodness of people…
little bits of knowledge that help for free….
t.
Help! I have followed the instructions above and changed the email address to another one in hopes of getting the password emailed to me. I went back requested a new password and waited. No email.
I should mention that I can get the password reset emails from WordPress but when I clicked the link to reset the password, I am taken to the WordPress Log-in screen but a little red box appears and say “Sorry, that key does not appear to be valid”. So, I can’t reset the password. I have reset it successfully in the past. Any ideas for me?
Hello Elizabeth,
That is very strange.
If you ever figure out why you can’t login with the mailed out key, please let us know. It’s almost as if you have two versions of WordPress running mixed up (which use different key systems).
Good luck!
Thanks. It’s really easy to use the lost password interface but my problem is the reset link can’t get though because it won’t recognize the key. I still can’t reset the password.
Thank you so much for writing this. I had this exact situation and was just about to uninstall wordpress and re-install it before I read this. You are a life saver!
Erica
Thanks all I had to do was check in phpmyadmin and look for the email that the password was sent to , worked like a charm .
All i can say is life saving SPOT ON!
Thank you very much for your clear and concise intructions. You are a star!
Didn’t work for me either. Installation on Ubuntu, no e-mail configured. Changing password in phpmyadmin didn’t work either. I guess a reinstall is required?
The link above just goes to Main Page, am I missing something?
Hi JJ,
Next time, include an email when setting up an admin account.
For the reinstall just backup your WP Content first. You should be able to move everything except the users table across from your existing database.
Sorry about the incorrect link in the Codex. I think it must have been changed.
Let us know if you figure out what was wrong and are able to get back in.
thank you so much .. I set up a wordpress installation for someone else and didn’t change the password because I wanted to let the other person choose the password. You can imagine how stupid I felt when i couldn’t find the standart password anywhere ..
you really helped me out.
Thank you very much for this, it saved me from trying to contact my webhost over Christmas!
Anna, it seems the site in your URL field doesn’t even run WordPress.
Happy New Year anyway.
Alec
Alec,
Thank you a lot this has really helped me at the first attempt.
Wish you a good new year.
Ivan
Your explanation of how to get pw back from wordpress saved my life. Thank you for being so clear…and for sharing this info. –kbmhartnett
Thank you so much for posting this! You saved me from having to delete and reinstall my blog.
Hi there,
In my phpMyadmin, i see that the wp_users table is empty.
What can i do now?
Thank you
Hi Andrew,
You can add a user. You won’t have the password though, so you’ll have to do a password reset from the login window using that user’s username and picking up the password from the email.
Have fun!
Thank you for this!! I was really starting to panic and this was SUCH a huge help.
Didn’t work for my wordpress account. I only see this as the only option. Wont send pw to my email. Confused and helpless.
Can anyone help?
Hello Matt,
This is not for WordPress.com, this is for stand alone WordPress installs.
Good luck!
Thanks so much you saved me from my disorganization!
I just wanted to give you a huge thank you. I had someone else do an installation on one of my sites and could not for the life of me figure out what username they had used. Took a little snooping around but finally figured out thanks to you what username I needed to use. Great job!!!!
thank YOU!!!!!
Hi,
I didn’t changed my pasword and login. I don’t know why but I can not log in. I made all your steps. I can see my password, login, but I can’t log in…what is the problem and how I can fix it? Can I try to change my pasword, logn and email? Thank you for your answer!
Hi Vaidas,
I’d suggest following our instructions in the post above.
Thanks.
Many thanks..after readomg your article i have found easy way to get my password back. I have read some articles to recover my password but they all are complited, using md5encryption. Thank a lot to give simple way.
hi…actulay i dnt remember my word press admin password…have no user access to my word pree…have tried cliking on lost your password bt on typing email address, i get the msg “The e-mail could not be sent. Possible reason: your host may have disabled the mail() function…” PLS HELP ME RECOVER MY PASSWORD
Thank you, thank you!
Thanks for sharing. It solved my problem to recover lost username and password and also edit my user name within the myPHP admin. I have godaddy hosting.
Ah I was about to be in freakout mode! Thank you so much for this it helped find which email I used for login.
thank you, thank you thank you! Had an old email address so could not get it reset. Changed it as you suggested. Someone messed with my site, sigh.
Great time-saving info. Saw the hashkey conversion method on another blog but this is simpler.
Thank you for the extremely simple instructions with php myadmin, and telling me not to panic. After I got to PHP MyAdmin and clicked on wp-users, I was able to see my ID, but not the password. I saw the edit that was on the same row as the user ID and password, and was able to update the e-mail address very easily using edit.
Then I went back to the lost password on the WP log in screen, and it e-mailed me a link to change my password.
I did the same for my blog on my sub-domain. Also, I think that was better if my hard drive ever crashes again. At least I know I will have the correct e-mail address for my wp account.
I would have went nuts trying to follow the instructions on the wordpress forums even with the pictures.
Live and learn, make a back up of everything including bookmarks and passwords.
Thank you so much for this. You’ve saved me such a lot of time and stress. Your help is greatly appreciated! Jo xx
I’ve got a really stupid question. I’m pretty sure I can remember my wp-org username and password, but I can’t for the life of me remember how to get to the screen where I have to input them!
I’ve a self-hosted site that currently has just a holding page on it. [mydomain].com takes me to the site. how do I get to the login screen?
Have tried [mydomain].com/admin, [mydomain.com/[myusername], and various other possibilities.
Told you it was stupid.
Hi , I have found two more ways to recover your password.
cPanel
Start by Logging Into cPanel
FTP and PHP hard reset
in above code at Username put your Username same with Password .Now log to your site with this Username and Password.
Thanks a lot, I just used it.. Works Works Works.. you saved my day..
Thank you VERY much. You saved me a lot of time.
Thanks you really helped me
This looks hopeful but no joy yet! can’t seem to log in to my wordpress site which I created 4 months ago..not even recognizing my email let alone user and password! got into cpanel of uk2 (host) and can find wp user but not users..have looked in all wordpress files I could find and couldn’t see passwords or usernames anywhere..can you help?
update..I’ve done it!!!!!! thank you! took me 5 hrs of stress before I hit this page..thank you!
‘Am more than happy to report that 5 years after your original post, you’re still saving people’s butt and stress levels. Mine included. Thanks Alec !
I have copied one site from a domain to another and then i could not log in in the new wp-admin. I tried all tricks you have provided above but none works.
Sould the usersname and password stay the same as in the old location. I am really puzzled. :(
Someone can help?
Julie
Quickly i just wanna thank you Alec for this great post. A few years down the road and this post is very useful. I just followed what your instructions of this post today and it did work for me. Many thanks Alec.
Hi Ndugu,
Glad the system worked for you! Thanks for letting us know.
Hi Julie,
I suggest you get in via the database. If you are still having issues, we can help. Please sign up for a pro support incident.
Thanks.
Many many thanks.
As listed above so many times- you are a life saver. Thanks for the right info at the right time!
Brilliant…
This made it easy for me to recover the lost data and get access again. Turns out I’d deleted an email address that the reset password went to.
All sorted now. Thanks very much! Cecilia :)
Perfect thanks very much.
PRASAD….thank you thank you thank you…finally got it after 5 days loll
I’m stuck at step 7..help!
Thank you
Thank you! This was exactly what I needed!
you’re a lifesaver! Thanks man!
Yay! Thank you SO much. Years on and this still works. I was ready to delete and start again. Got a little stalled at step 7 because there were 3 wp choices for me. Hours of frustration and a very bad temper now cleared! Thanks again Alec!
Wow great help!! I was almost in panic because I did not know how to recover my password, but your information really helped me!
Thanks
hello..actually i have forgotten my admin password and username of my offline website that i am preparing for my final year project by using php wordpress..so please tell me the steps to find my admin password and username and also i am using eclipse platform.
Why always doing it difficut eh. As long ppl have access to their db through phpMyAdmin it is done in 10 seconds if you know how to.
Access your db (phpMyAdmin). serach for wp_users (or the right prefix if you use another one (smart ppl would do)).
Select the one with user ID 1. (if you went for admin)
Click edit and change password in whatever.
You see the column in front of it (function)? Select MD5
Click Go
DONE
Not sure if I am right? Test if yourself.
Thanks lifesaver, you should have a donate button on this page – you potentially save us money from recovering and paying others to do this for us
Thank you so much!
You are a life saver. Thank you so much.
Thank You :)
Thanks Alec,
obviously your method is of great benefit.
I have a bit of an issue – I can’t see a “WordPress weblog database” tab once I have opened PHP My Admin ?
I see a “Databases” Tab but that just lists the data bases for the WordPress installations,
What have I missed,
Cheers and Thanks,
Mike FD
Sorted – found my way eventually – just changed user login from admin and changed user email (one that I could remember!) so that I could redo new password.
Cheers,
Mike FD
Super!…that saved me a lot of time! Thanks!
Thank you so much, this information save me hours of work and having to talk to my hosting company. Very grateful
Thanks for the tip. This shall be very useful when ever I loose my password.
What if you don’t have access to phpMyAdmin? My old host gave me access to a cPanel, but I never had access to phpMyAdmin.
Hi Anne-Marie,
Via cPanel you should have access to phpMyAdmin unless your host has specifically disabled the module.
Making the web work for you, Alec
Thanks a lot Alec. A bundle of thanks.
Hi Alec, im stuck at step 7 and 8. what do you mean by go back to the login screen?
Thanks Alec. Very helpfull.
I am having a problem. my self hosted wordpress refuse to log me in for two days now.I tried resetting my login details through “I LOST PASSWORD” after which they sent a resetting link to my email box,but it does not work. I also tried using PHPMYADMIN but i could not see wp-users. please what should i do again please?
I was able to get to the user/pass for the Users access to the website (contributors/editors etc) but not the Admin user/pass that one would enter at ‘website.com/wp-admin’. That info was not displayed in the wp-users I need the login I created at the time installing wordpress on the server. Please advise.
Hi Taylor,
With my method you have to browse the phpMyAdmin table for users and reset your password for admin user. If you haven’t changed the admin username you can probably reset the password for that account and have it go to your original email. Or change that email.
Making the web work for you, Alec
Hi Alec,
Recently can not log in to my wordpress.com blog. Do you know how to fix this?
I already use the password recovery function but nothing happens until now. Please help me.
I try to find wordpress email contact, but I can not find it.
Thank you for your help.
Hi Grace,
My solution only works for self-hosted weblogs. You’ll have to contact WordPress.com (no they don’t make it easy). Hit them on Twitter?
Hello Alec,
I recently launched a basic free wordpress page for a client of mine, not being hosted anywhere else, only on wordpress.com. I recently had my cache cleared out have no clue on what the activation email is and when I send an activation to recover/change password I am clueless as to where it is. What are my options?
My suggestions apply to self-hosted WordPress (.org). With WordPress.com you’ll have to find someone who will listen to your sad story and actually do something. We don’t do a lot with WordPress.com so I wouldn’t know the best way to approach WordPress.com as it’s almost all self-help. Maybe try to book a migration ($50 or so). Or throw yourself at the mercy of their Twitter.
No fun.
You have saved me from stress and so much hair pulling. I could not figure which email i used to set up my wordpress website and had issues loggin in to finish the work. Thanks you for this piece. Please keep it on. its going to save lives for time coming!!
Thanks, you help me a lot :)))
Very good tutorial, it helps a lot. Thank you!
This Post have saved my blog. Thank you so much.
Alec you’re a genius! I am a total newbie when it comes to WordPress etc, & your step by step guide saved me! Thank you soooo much! :)
thanks much. i want to share what might be another idea for some people.
i found the email address, as you suggested. but it wasn’t any good anymore. so i tried editing the database and putting in a new email address and saving my changes.
then i tried to reset my password providing that new email address
and it worked :)
thanks very much
Hey — just wanted to take a minute and say THANK YOU — I knew there was a way to do this, but I didn’t know how. You showed me how. You helped a total stranger just to be kind, and I really appreciate that.
This is what the internet COULD be!!!
I have no words to thank you Sir. I was facing a lot of problem to recover my password. Your post helped me and I recovered my password by following your instructions. Hats off to you man!!!! Thanks once again.
You are awesome. Thank you!!
Thanks. Your advice got me out of this predicament.
You are a star !…panic over…thanks
Great method sir. I did something different after step 7. I changed the function value of my user account to MD5 hash and entered the new password inside the value box. That changed the WordPress password.
Thank you!!! I know nothing about computers or servers or anything but was able to follow your instructions!
Oh boy, this saved me. I backed up and migrated a site without copying the password. Ya, I know. Thanks!
Thank you very much. It did worked for me perfectly.
Hi John and Leonard and Ellie and everyone! Thanks so much for your kind words. Believe it or not, last month I had to use my own instructions to break into one of our own sites where the admin email was no longer operational. I was happy to see the method really works and still works.
Brilliant I migrated my other website which had other login details and was almost pulling my hair out lol Thanks Alec your a star Cheers ;)
Wp_users is not visible or deleted in phpmyadmin Please help me somebody.
thanx sir,it was very helpful
Good morning, I would like to close down a wordpress site that has incorrect information on it but the person who established the site is no longer part of my organisation. Are you able to advise on how I may be able to do this?
Thank You,. I had been stressing for a whole day until I found this!!
@Greg Thanks for your kind words. I’m glad this step by step helped you. We’ve used it ourselves over the years.
@Wasim If you have access to phpMyAdmin you are in relatively good shape. You’ll have to hire a developer to dig in and help you though. Monkeying with phpMyAdmin is beyond a simple online tutorial. Many, many things could have gone wrong from database corruption, to security issues.
@Jane To access and remove that WordPress site, you’d have to have access to either phpMyAdmin or one of the existing admin emails. The steps to get back in are covered in the blog post. Alternatively if you have reason to believe you can shut down the site for illegal activity, the simplest way would be to contact the web host with a cease and desist order. If the original webmaster has control of the domain, s/he can just move it somewhere else and you will be in a game of cat and mouse. A solicitor is what you’ll need in this case. Your best tack would be to confiscate the domain for illegal activity. Depending on the extension (if it’s your country’s local domain extension, i.e. co.uk or in any of the Five Eyes countries it’s relatively easy, if it’s an EU country it’s difficult, if it’s .ru good luck.
Whatever you do, the original webmaster can repost the same material at another web address. If the content is hosted on a server your own organisation controls, the simplest way to get rid of the unwelcome WordPress site is simply to delete the content at server level or move the A or C record at DNS level.
Thank you for the information – it was exactly what I needed and worked perfectly.
this is the information i really needed.. worked fine .. thanks for this
Thank you so much, This shall be very useful when ever I loose my password.