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. Prescott Chartier says

    I’ve tried this several times and each time it still says the password is incorrect, and yes I have the correct database.

    • WPBeginner Support says

      The next thing to check would be that the MD5 action is properly going through in your database or if it gives you an error.

      Administrator

  3. Moinuddin Waheed says

    Changing password by clicking lost or forget password and then getting an email is an easy step.
    Using phpmyadmin for changing password is a bit developer oriented.
    I have used while developing sites from local host by flywheel but I fear doing for the live server.
    Do we have the same encryption after changing password as it was before or it is simply the hard coded text that we typed in as password?

    • WPBeginner Support says

      If you are using the phpMyAdmin method you would want to put in your password normally and in the function dropdown you would set it to MD5 to have the password be the text you placed in the field.

      Administrator

  4. Branson says

    Hi,

    I have just tried to reset my password with the MD5 method you suggested, but it didn’t work. I tried like 5 times and every time I tried to login into my website it would say incorrect password. What’s wrong?

    Thanks in advance.

    • WPBeginner Support says

      If you have more than one WordPress installation on your hosting provider, ensure you are editing the correct database and ensure you apply the changes in the database for the most common reasons.

      Administrator

  5. Stem says

    Hello,

    I tried to reset my password using this method, but it’s showing this error „Error: The username user is not registered on this site. If you are unsure of your username, try your email address instead.”

    • WPBeginner Support says

      That would normally mean your username is not on the site, you would want to ensure are logging in with the correct username or email address. The steps in this article should not affect your username or email.

      Administrator

  6. blossominglotus says

    This method is not working for me. I even tried updating the password using raw SQL. It does change the password but I still cannot log in with the new password.

    • WPBeginner Support says

      If this method is not working then we would recommend reaching out to your hosting provider and/or checking that you are editing the correct database on your hosting provider if you have more than one database.

      Administrator

  7. Guillaume Frasca says

    Hi, I followed your advice, but when I click on Go, I have the #1142 error message „UPDATE command denied to user 'scienceisa431’@’@XX.XX.XX.X’ for table 'mod597_users’
    Is there a way around this?

    • WPBeginner Support says

      Your user may not have proper access on your hosting environment, if you reach out to your hosting provider they should be able to assist!

      Administrator

  8. NS says

    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.

    • WPBeginner Support says

      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.

      Administrator

    • WPBeginner Support says

      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

      Administrator

  9. John says

    Perfect – saved me from a big issue.. thanks! Now, about getting those WP system emails working again…………….!

    • WPBeginner Support says

      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

      Administrator

  10. Taylor says

    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 says

      You would want to double-check that you encrypted the password using MD5 as the most common reason

      Administrator

  11. Hazel Pan says

    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.

  12. Umar Gondal says

    May Allah bless you with eman. This article helped me to reset password of my website. Very informative article

  13. Ajit Kumar says

    The email could not be sent. Possible reason: your host may have disabled the mail() function.

    error shows

    • WPBeginner Support says

      If you have that error on your site, you would want to start by reaching out to your hosting provider.

      Administrator

  14. George says

    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 says

      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.

      Administrator

  15. Van says

    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 says

      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.

      Administrator

    • WPBeginner Support says

      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.

      Administrator

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