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. Stegemüller says

    I have fighting with passwords for hours. Then I found this guide and I was home free. Thank you very much.

  3. Aarthi Rengaraj says

    Perfect tips and was very helpful in getting my client’s domains password changed. I was struggling and that „MD5” tag thing was actually missing. Thanks so much. This is the best place for any WordPress queries.

  4. Susan says

    I am locked out of WordPress, my site is down. I can go into my c-panel. If I change the password to an encrypted password, do I now copy that and use it to log in? I really don’t get it? It is encrypted isn’t it? What do I now use to log into my WordPress? Do I use the log in name and email that is there in the c-panel?
    Thanks

    • Charles Allen says

      Susan, the MD5 is like a secret recipe where one ingredient is missing. Let’s say we are pen pals and we are going to meet for the very first time. Since I have never seen you, I need a way to know that it is really you. One way to do this if you can send me a piece of homemade cake and a list of all but one secret ingredient. When we first meet, you will finally tell me what the secret ingredient is, and then I will bake my own cake with the exact recipe. If the cake I makes is exactly same as the cake you sent me, then I know you are really my pen pal. The MD5 is the completed cake, and the plain password you came up with is the secret ingredient. When you send the password to WordPress, it will use your secrete password ingredient to see if it can bake its own MD5 cake. When you log into WP, use the plain text password. Your WP user name is usually different from your cPanel name. If you forgot your user name, it will be listed as „user_login” in the database.

  5. Jivanti says

    Hello there,

    I seem to be getting the username is invalid commad everytime I try to login.
    But the username and password is correct. It seemed like I might have created a different user name the first time I got locked out of my account. Or I forgot to renew my domain. I really can’t remember.

    When I use a different username, I’m able to log in into WP dashboard and do theme changes but it is not reflecting in my current website.

    The current dashboard does not have any of my old post or images.

    I logged into to my cpanel and checked under the myphpadmin, there is 2 database. One of it contain the old posts and images. I tried the above method using the MD5, I’m still unable to acess the old user id and my old post.

    I suspect the current active site is configured at the old database.

    Another question, when I reset the password through MD5, do I copy this same new rest password that was generated in the phpadmin screen ( the long one) and paste it in the wp login screen. I tried it. It didn’t work.

    Please help.

  6. Harry says

    Sir I was changed my wordpress admin password in the same way but now it my dashboard is not opening it is showing a wrong password but I have changed it. Sir please help me………

  7. Charlie Sasser says

    An easier way is to use phpadmin and just change the email address to your current email and then go to regular login and click on „Forgot Password” and reset from email link. No need to worry about MP5 and all that stuff.

  8. John says

    I wish people who make training videos would slow down they are always rushing through it as if they have a train to catch, So slow down and you will have great training videos…

  9. Peter says

    I don´t know what kind of hash it is, but it´s not default form of MD5. WordPress password hasher does the job fine.

  10. Darshan Krishnan says

    Thank you very much, Syed and team WPBeginner.
    My site was put in maintenance mode and hence password reset option did not work.
    I changed the password as you suggested and everything is back to normal.
    Much thanks for the awesome content. :)

  11. Luis says

    Hi! I’m s using mamp as local host, and i’m having some troubles with it: I can’t recover my wordpress password by setting a new one on phpMyadmin. It shows that the password row has been updated to the new one I chose, but it is not recognized by wordpress.org when i try to log in. Can’t figure out what may be the problem. I’m giving up on hosting my site on MAMP. I’ve seen that I can create a new database with cPanel, since I’m paying for hosting service from namecheap. What do you suggest for starting a new project from zero? Thanks a lot!

  12. Benji says

    Unfortunately this isn’t working for me. I’m doing exactly what your asking, but when I made a new password using the MD5 Hash and copy and paste that new password in the field > save by hitting Go > then go to refresh my Website admin log in page, I enter the new password and still tells me I’ve entered the wrong password??? I’ve tried email recovery but never get sent an email… So painful!

    Any idea’s?

      • Dave says

        You don’t use the hashed password. Let’s say you set your new password to „letmeinalready,” choose MD5, and save it. You wouldn’t use that hashed password to get in – you’d use „letmeinalready”

      • Linda says

        Same problem here. I have followed all instructions to a T and it’s just not working. Can my web host chat help me? Me web developer has disappeared with this information.

        • WPBeginner Support says

          Yes, if you reach out to your hosting provider they should have access to update your password for you

    • jan says

      awesome, very old post, but still being read and replied to!

      I used Duplicator to copy a one-page WP-site to localhost (XAMPP). Made a new database as instructed, password and everything.

      When I try to enter local password (or is it the database password?), screen reverts to site published on cloud host.

      Localhost DB has two entries: for Duplicator (prefix 2ecxx_) and what I thought was local copy (prefix wp_). But the 'local’ DB _wp entries are actually referring to the cloud hosting environment.

      Tried to change wp_user username en PW (MD5), but does not work

      Changed siteurl in _wp_options to localhost, does not help

      When I use 2eczz_users username and PW, page also moves back to site published in the cloud

  13. Rachel Ortiz says

    Thanks so much. I am NOT a programmer whatsoever and these instructions were easy enough for me to get. This was a lifesaver.

  14. Charles Kinga says

    Lot of thanx guys. It has worked for me and was stranded on my website security but now am fine.
    The procedures are very user friendly hence easy to understand.
    God bless

  15. John Osmond says

    Why not use the md5 hash that is already there in phpMyAdmin? Just open the drop-down in the functions column. I will md5 hash your plain text password for you.

  16. Elgin Martinez says

    Sir/Madam
    I am interested in becoming a professional web designer using the WordPress platform but don’t know where to start. Any advise thanks.

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