Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Puchar WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Jak zresetować hasło WordPress z phpMyAdmin

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy chcesz zresetować twoje hasło do WordPressa za pomocą phpMyAdmin?

Jeśli nie jesteś w stanie zresetować swojego hasła WordPress, istnieje sposób na zresetowanie go bezpośrednio w bazie danych WordPress za pomocą phpMyAdmin.

W tym artykule pokażemy, jak łatwo zresetować hasło WordPress z phpMyAdmin.

How to Reset a WordPress Password from phpMyAdmin

Dlaczego warto resetować hasło WordPress z phpMyAdmin?

WordPress umożliwia bardzo łatwe odzyskanie utraconego hasła.

Możesz po prostu przejść do ekranu logowania twojej witryny internetowej WordPress i kliknąć odnośnik „Zgubiłeś hasło?”.

Click on 'Lost Your Password?'

Po kliknięciu odnośnika zostaniesz przeniesiony na stronę resetowania hasła. Gdy wpiszesz swoją nazwę użytkownika lub adres e-mail, WordPress wyśle odnośnik do resetowania hasła na powiązany adres e-mail.

Jeśli jednak nie masz dostępu do tego adresu e-mail lub twoja witryna WordPress nie wysyła wiadomości e-mail, nie będziesz w stanie zresetować hasła.

W takiej sytuacji konieczne będzie zresetowanie twojego hasła do WordPressa bezpośrednio w bazie danych. Najprostszym sposobem na to jest użycie phpMyAdmin.

Powiedziawszy to, zobaczmy, jak łatwo zresetować hasło WordPress z phpMyAdmin.

Jak zresetować hasło WordPress z phpMyAdmin

Subscribe to WPBeginner

Jeśli nie chcesz oglądać poradnika w formie filmu, możesz kontynuować czytanie poniższej wersji tekstowej.

Najpierw należy logować się do kokpitu cPanel twojego konta hostingowego WordPress. Następnie należy przejść do sekcji Bazy danych, gdzie należy kliknąć ikonkę phpMyAdmin.

phpmyadmin panel in Bluehost

Spowoduje to uruchomienie aplikacji phpMyAdmin.

Tutaj musisz wybrać twoją bazę danych WordPress z lewego panelu.

Select Your WordPress Database

Zobaczysz teraz listę tabel w twojej bazie danych WordPress.

Na tej liście należy wyszukać tabelę wp_users i kliknąć znajdujący się obok niej odnośnik „Przeglądaj”.

Click the wp_users Browse Link

Uwaga: Nazwy tabel w twojej bazie danych WordPress mogą mieć inny prefiks niż ten, który pokazujemy na naszym zrzucie ekranu. Zmiana prefiksów tabel może poprawić zabezpieczenia twojej witryny WordPress.

Zobaczysz teraz wiersze w twojej tabeli użytkowników WordPress. Kliknij przycisk edycji obok nazwy użytkownika, którego hasło chcesz zmienić.

Click the Edit Button Next to the Username

PhpMyAdmin wyświetli formularz ze wszystkimi polami informacji o użytkowniku.

Będziesz musiał usunąć wartość w polu user_pass i zastąpić ją twoim nowym hasłem. W kolumnie funkcji wybierz MD5 z menu rozwijanego, a następnie kliknij przycisk Przejdź u dołu formularza.

Select MD5 and Type Your New Password

Twoje hasło zostanie zaszyfrowane przy użyciu skrótu MD5, a następnie zostanie zapisane w bazie danych.

Gratulacje! Udało ci się zmienić twoje hasło do WordPressa za pomocą phpMyAdmin.

Niektórzy z was mogą się zastanawiać, dlaczego wybraliśmy skrót MD5 do szyfrowania hasła. WordPress wcześniej używał skrótu MD5 do szyfrowania haseł, ale od wersji WordPress 2.5 używa silniejszych technologii szyfrowania.

Jednak WordPress nadal rozpoznaje MD5, aby zapewnić kompatybilność wsteczną. Gdy tylko użytkownik loguje się przy użyciu ciągu haseł przechowywanego jako skrót MD5, WordPress automatycznie zmieni go, aby korzystać z nowszych algorytmów szyfrowania.

Przewodniki ekspertów dotyczące haseł w WordPressie

Teraz, gdy już wiesz, jak zresetować hasło WordPress z phpMyAdmin, możesz zapoznać się z innymi artykułami związanymi z hasłami w WordPress.

Mamy nadzieję, że ten poradnik pomógł ci dowiedzieć się, jak zresetować hasło WordPress z phpMyAdmin. Zachęcamy również do zapoznania się z naszym przewodnikiem krok po kroku po zabezpieczeniach WordPressa, który pomoże ci zadbać o bezpieczeństwo twojej witryny lub z naszą ekspercką listą niezbędnych wtyczek.

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.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

287 komentarzyZostaw odpowiedź

  1. Syed Balkhi says

    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!

  2. Graham says

    THANK YOU!!
    I was caught up on the md5 encryption of the pw field. This really save my tail. I was using a member profile update which stripped all the email fields. This in turn also stripped mine and poof! Everyone’s password was deleted.
    Seriously.
    So, thank you a lot.
    -Graham

  3. Edwin Calimlim says

    Great post, i wasn’t able to access my WP site for months already but thanks to this post, it is really a big help for me. Thank you.

  4. atif shahab says

    Thanks alot. I was worried and stuck as well as i was unable to acess my WordPress dashboard for 2 hours. your recipe worked quickly. Thanks once again :)

  5. alan says

    What a fantastic email, new to C-panel but this tutorial was so clear I did it first time.

    Great job.

    Regards,

    Alan

  6. Pedro says

    Did this now Jetpack gives me this error :

    Jetpack could not contact WordPress.com: register_http_request_failed. This usually means something is incorrectly configured on your web host.
    Operation timed out after 15000 milliseconds with 0 bytes received

    Any tips on this?

  7. Carina says

    I wish it worked for me……I followed the directions [easy] but when I went to put in the MD5 hash numbers, they were exactly the same as what was already in the field value. This tells me that my problem is then not entering my user name and password that is the problem, but something completely different. …..:(

  8. Thom Burlington says

    Thank you, but ..
    while I can now reset the password with the MD5 code, derived from the new password I created, say, „abc” , and I finish and go back to my wordpress adimin signin:
    domain.org/wp-admin : username ; password

    for the password do I now use „abc” ?

    • Thom Burlington says

      Yes the password is „abc” – very nice – between your post and the video you are very clear, thank you.

  9. Neal Kelshaw says

    Not quite correct. If you choose MD5 as the function in the drop down menu, and then type the password in plain text it hashes the value to an MD5 value.

  10. Jon O says

    Just wanted to say a BIG thank you for this article! I was indeed hacked and had sought assistance from my hosting company and others.. but this article was the only straight forward approach that worked first time! Thanks so much!

  11. Tanya says

    I spent hours trying to find a website to explain why I was logged onto my WP then 5 minutes later I couldn’t log onto it again.

    Thank you so much for the simple video. Problem solved in 5 minutes!

    You rock!

  12. Alexandra Jones says

    I’m the dunce from Mars who can’t speak computer. I’ll start with this:

    „The best place to look is your wp-config.php file which is located in your root WordPress Directory.”

    OK–where is it and how do I get there? I can’t log into my site because it will not any accept any password resets. I tried Chris’s phone method and got in on my phone, but not on my laptop. and when I tried to post something on the phone, I got a message that I should install the latest Jetpack, but I had to log into WordPress again, and guess what–„Invalid username.”

    Is any of you who found these instructions such a breeze willing to speak to me on the phone? I’m writing from my wit’s end. That’s where I am. I would so appreciate it! Cheers!

  13. AMIT KUMAR says

    Thank you ! I was simply trying to enter password. I never knew about the MD5 concept. Thanks again for a great tutorial.

  14. Tony Garcia says

    A client’s developer passed away while on vacation of all things. You can only imagine what happened after that. Nobody knew anything of how their developer was doing things. Luckily I was able to locate where their databases were and got access to their PHPMyAdmin.

    Voila!!! I have both of their lost sites back up and running with access to the back-ends because of this post.

    Thank you!!!

  15. Lori says

    This saved me ENDLESS time. I’m not a tech novice but I am a novice at coding. These step by step instructions helped me regain access to my site! After losing access due to a „auto correct” error. (long story)

    Thank you again!

  16. christian gibson says

    You say that WordPress generates an MD5 encryption of your password? But I seem to remember seeing somewhere on Stackoverflow that this is no longer true. They said: „The WordPress password hasher implements the Portable PHP password hashing framework, which is used in Content Management Systems like WordPress and Drupal”.
    I know very little about encryption/decryption systems, but one thing does seem strange. In a WordPress website database you can can see in the user table a field called 'user-pass’ with contents like '$P$BlBAsz6jcvS3rLGDiE81PwtwbEazKg1′.
    All the hash values in this table begin with $P$B….. so what on earth is the point of including these leading 4 characters if they are all the same……?

  17. Rod Salm says

    As always, straight forward, very helpful tutorials. Right to the point and bang on accurate. Like this phpadmin tip for passwords.

    Thank you!

  18. Ben Glancy says

    Or, if your admin account is the usual ID=1.

    Open functions.php and put this code in
    wp_set_password( „mypassword”, 1 );

    Reload the page.

    Uncomment code. Done.

  19. Matthew Harris says

    Thanks for the tip, I couldn’t quite remember. Here is a return tip for you:

    You don’t need the external MD5 tool. Look on the screenshot there is a „Function” column with drop down boxes. On the user_pass field just select MD5 in the function column and type your new password in normal plain text in the input box next to it. When you save it phpMyAdmin will automatically md5 hash it for you.

  20. Kevin B. says

    Very helpful. As a non-technical user, I felt powerless when an errant designer wouldn’t respond to my requests for passwords; this page with instructions filled the bill perfectly!

    Many thanks,

    KB

  21. Gustavo says

    Thanks for this great tip. I tried the „easiest” way above but couldn´t retrieve the automatic email because of some misterious server glitch.
    I don´t know beans of PhP, so this kind of article is very useful for us.

  22. Chris says

    I found the easiest and fastest work around the „Sorry, that key does not appear to be valid” issue to reset your WordPress password using your cell phone.
    1.) Just use your cell phone to access your password reset email that was sent to you.
    2.) Click on the link in the email. The link will automatically open the site where you can input your new password.
    3.) Follow the prompts to enter your new password.
    4.) Save your new password
    5.) You should now be able to access your WordPress website with your new password from any computer, business as usual.

    I hope this helps everybody!

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.