Att återställa ditt WordPress-lösenord är vanligtvis en okomplicerad process. Ibland fungerar dock inte standardmetoderna, vilket gör att du blir utelåst från din webbplats.
Några av våra läsare har stött på detta problem och bett oss om råd om hur de bäst kommer åt sina konton. Lyckligtvis kan du alltid använda phpMyAdmin-verktyget i ditt hostingkontos kontrollpanel för att direkt återställa ditt lösenord från WordPress-databasen.
I den här artikeln visar vi dig hur du enkelt återställer ett WordPress-lösenord från phpMyAdmin. Vi förklarar varje steg tydligt, så att även du som inte är bekant med databaser kan följa med på ett säkert sätt.
Varför återställa ett WordPress password från phpMyAdmin?
WordPress gör det superenkelt att återskapa ett förlorat password.
Du kan helt enkelt gå till vyn för login på din website i WordPress och klicka på länken ”Lost your password?”.
När du klickar på länken kommer du till sidan för återställning av password. När du har enter ditt användarnamn eller din email address kommer WordPress att skicka en länk för återställning av password till den associerade email addressen.
Men om du inte har tillgång till den email addressen, eller om din WordPress site Misslyckas med att skicka ett email, kommer du inte att kunna återställa ditt password.
I en sådan situation måste du återställa ditt WordPress password direkt i databasen. Det enklaste sättet att göra det är att använda phpMyAdmin.
Med det sagt, låt oss se hur du enkelt kan återställa ett WordPress password från phpMyAdmin.
Så här återställer du ett password för WordPress från phpMyAdmin
Om du inte vill titta på tutorialen på video, kan du fortsätta att läsa textversionen under.
Först måste du logga in på cPanel-instrumentpanelen på ditt WordPress webbhotell konto. Därefter måste du navigera till sektionen Databases där du kan klicka på phpMyAdmin-ikonen.
Detta startar phpMyAdmin-appen.
Här måste du välja din WordPress database från den vänstra rutan.
Du kommer nu att se listan över tabeller i din WordPress database.
You need to look for the wp_users
table in this list and click on the ’Browse’ link next to it.
Note: Tabellnamn i din WordPress-databas kan ha ett annat prefix än det vi visar i vår screenshot. Om du ändrar tabellprefix kan du förbättra säkerheten på din site i WordPress.
You will now see the rows in your WordPress users table. Gå vidare och klicka på knappen edit bredvid användarnamnet vars password du vill ändra.
PhpMyAdmin kommer att visa dig ett formulär med alla fält för information om användaren.
You will need to delete the value in the user_pass
field and replace it with your new password. Under function column väljer du MD5 i rullgardinsmenyn och klickar sedan på knappen Go längst ner i formuläret.
Your password kommer att krypteras med hjälp av MD5-hash och sedan lagras i databasen.
Vi gratulerar dig! Du har utan problem ändrat ditt WordPress password med hjälp av phpMyAdmin.
Några av er kanske undrar varför vi valde MD5-hash för att kryptera password. WordPress använde tidigare MD5-hash för att kryptera lösenord, men sedan WordPress 2.5 har det använts starkare krypteringstekniker.
WordPress känner dock fortfarande igen MD5 för att tillhandahålla bakåtkompatibilitet. Så snart du loggar in med en password string som är lagrad som en MD5-hash, kommer WordPress automatiskt att ändra den till att använda de nyare krypteringsalgoritmerna.
Expertguider om lösenord i WordPress
Nu när du vet hur du återställer ett WordPress-lösenord från phpMyAdmin kanske du vill läsa några andra artiklar relaterade till lösenord i WordPress.
- Så här ändrar du ditt password i WordPress (Beginner’s Guide)
- Så här återställer du password för alla användare i WordPress
- Så här customize du WordPress Reset Password Page
- Hur man tvingar användare att byta lösenord i WordPress – Löp ut lösenord
- Har du glömt ditt password? Så här återskapas ett bortglömt password i WordPress
- Så här tvingar du fram starka password för användare i WordPress
- Så här addar du till tvåfaktors-autentisering i WordPress (gratis metod)
- Hur man tillåter användare att dölja/visa password på WordPress login vy
- Hur man enkelt och säkert hanterar password (Beginner’s Guide)
Vi hoppas att denna tutorial hjälpte dig att lära dig hur du återställer ett WordPress password från phpMyAdmin. You may also want to see our ultimate step-by-step WordPress security guide to keep your WordPress site safe or our expert pick of must-have plugins.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
NS
Thanks! The ”MD5” encryption step is what I was missing when I tried to reset. Then I came across your article and tried it and it worked! You just saved me hours and hours of time and a potentially angry client.
aisha
I tried this but didn’t work. Need help
WPBeginner Support
If your changes are not staying, you would likely want to check with your hosting provider to ensure you’re not running into a security tool blocking your change. Another common issue would be if you have a staging site or an old database for a previous site so you would want to ensure you are changing the information for your correct site.
Administratör
Altuğ G.
This didn’t work for me
WPBeginner Support
It would depend on what part didn’t work. The most common reasons would be if you did not save your changes or did not convert to MD5
Administratör
Pakodev
Thanks! It worked.
WPBeginner Support
Glad our guide was able to help
Administratör
Arsène
It worked, thank you very much
WPBeginner Support
Glad our guide could help
Administratör
Aikya Dasgupta
Thank you very much. This worked for me and I am now able to access my WordPress dashboard.
WPBeginner Support
Glad our guide was helpful
Administratör
John
Perfect – saved me from a big issue.. thanks! Now, about getting those WP system emails working again…………….!
WPBeginner Support
If you’re not receiving the emails, we would recommend setting up SMTP on your site:
https://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/
Administratör
Tayyab Shafique
it was really helpful.
Thanks
WPBeginner Support
You’re welcome
Administratör
Saad
thanks a lot for saving my day …
WPBeginner Support
You’re welcome
Administratör
Anita
Thank you, this saved me a headache
WPBeginner Support
Glad our guide was helpful
Administratör
Elias
You’re a genius. Thank you
WPBeginner Support
You’re welcome
Administratör
jackie
REALLY helpful. I’ve been struggling for weeks and now i can finally log in again! thanks a lot!
WPBeginner Support
You’re welcome, glad our guide was helpful
Administratör
Robin B
So, so helpful. Thanks so much!
WPBeginner Support
You’re welcome
Administratör
Chidi Ejikeugwu
why did you recommend to use MD5 when changing password?
WPBeginner Support
That is what WordPress uses for passwords by default
Administratör
japsimran singh
Thank You Buddy.
It really helped.
WPBeginner Support
Glad our article could help
Administratör
banson
Thank you problem Solved
WPBeginner Support
Glad our guide was helpful
Administratör
Nthtuko Mbhele
Thank you so much, thank you, thank you
WPBeginner Support
You’re welcome, glad our guide was helpful
Administratör
Premier
Thank you! Solved my problem!
WPBeginner Support
Glad our guide was able to help
Administratör
Yann
Worked wonders, thanks!
WPBeginner Support
You’re welcome, glad our guide was able to help
Administratör
Marco
thank you!!!!!!
WPBeginner Support
You’re welcome
Administratör
Anand
Did not work for me.
WPBeginner Support
You may want to ensure you set the password to MD5 and that you are editing the correct user file if you have multiple WordPress sites or users
Administratör
Pranoy
very very thank you
big headache solved
WPBeginner Support
Glad our guide could be helpful
Administratör
Urs Keller
You did super great job. I could reset my pw. Thank you!
WPBeginner Support
You’re welcome, glad we could help
Administratör
Taylor
I have followed these steps and the password was generated however, whenever I put in the password it still says it is incorrect.
Any help you can provide ?
WPBeginner Support
You would want to double-check that you encrypted the password using MD5 as the most common reason
Administratör
Cattel
Direct explanation! Thanks!
WPBeginner Support
You’re welcome
Administratör
Hazel Pan
Thank you for this noob-friendly guide! I was able to understand how to fix my issue right away. It also helped that I had awesome support from my hosting provider, Namecheap.
WPBeginner Support
Glad our guide could be helpful
Administratör
Terry
Thank you so much for this article, it helped.
WPBeginner Support
Glad our article was helpful
Administratör
Umar Gondal
May Allah bless you with eman. This article helped me to reset password of my website. Very informative article
WPBeginner Support
Glad our article could be helpful
Administratör
Ajit Kumar
The email could not be sent. Possible reason: your host may have disabled the mail() function.
error shows
WPBeginner Support
If you have that error on your site, you would want to start by reaching out to your hosting provider.
Administratör
George
Great article, I can see how this ”can” work, but didn’t work for us either!!!!! We have access to the registrar, access to the domain and web hosting, full access to file manager, phpMyAdmin and the Installatron.
Followed your instructions to the T, didn’t work. We even changed the email in the email field. Its like the script didn’t update.
WPBeginner Support
If this method didn’t work then you likely need to reach out to your hosting provider and your host should be able to assist in fixing this issue.
Administratör
Donny
Really helpful, thanks a lot.
WPBeginner Support
You’re welcome
Administratör
zorax
Thank you, it was really helpful!
WPBeginner Support
You’re welcome
Administratör
Van
This didn’t work for me. I’ve tried changing my password via my profile in WP Admin and using this technique; neither worked. WordPress 5 bug?
WPBeginner Support
You may want to clear your cache on your site and browser and check with your hosting provider that they are not preventing changes to your site’s database.
Administratör
Ammar Falak
It didn’t work for us. I am still locked out of my WordPress Account. Please help!
WPBeginner Support
If this method does not work, if you reach out to your hosting provider they should be able to help you log back into your site.
Administratör
Sanyukta Khot
Thank you for a very useful article! Saved me a lot of time!
WPBeginner Support
You’re welcome
Administratör
Dee
Awesome!! Thanks so much for the valuable information.
Please continue to help us newbies…
WPBeginner Support
Glad our articles are helpful
Administratör
lordhunos
Wow, it works! You made my day! Thank you very much!
WPBeginner Support
Glad our article could help
Administratör
Boitumelo
This was very very helpful.
Thank you very much
WPBeginner Support
Glad it was helpful
Administratör
Naveeen
Awesome. Worked like magic.
Nice video and tut. Had exact problem with the password. Solved with this tut. Thank you very much.
Ana Villegas
Thank you! It is very helpful.
Arukhan
Thank you!
maza
this was helpful and easy to do thank you
joe capels
Dude thanks .I was about to redo the entire thing from scratch and funny what i did this website some 10 yrs ago and its ranking on SEO is pretty great -was freakin worried !
Helios Venntures
Thanks a million, you’ve just saved a brother’s job.
Rajni
Very useful. Thanks a ton!
Mylo de Borja
How do I go to phpmyadmin, cpanel? I can’t remember who my hosting provider is.
Adam Vaughan-Williams
Awesome!! Yes worked weil but the presenter of the video speaks too fast and had to keep going back. The instructions worked well though,
Thankyou
peter
Take care to make sure yoju get the table name correct in the wp-config.php
Blessing Mashoko
Works like a charm
Natty Honeycomb
Thank you so much! I can’t believe I didn’t know my email address anymore!