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

Como redefinir uma senha do WordPress no phpMyAdmin

A redefinição da senha do WordPress geralmente é um processo simples. No entanto, às vezes os métodos padrão não funcionam, fazendo com que você fique sem acesso ao seu site.

Alguns de nossos leitores se depararam com esse problema e pediram nossa orientação sobre a melhor maneira de acessar suas contas. Felizmente, você sempre pode usar a ferramenta phpMyAdmin no painel de controle da sua conta de hospedagem para redefinir sua senha diretamente do banco de dados do WordPress.

Neste artigo, mostraremos como redefinir facilmente uma senha do WordPress a partir do phpMyAdmin. Explicaremos cada etapa com clareza, garantindo que, mesmo que você não esteja familiarizado com bancos de dados, possa acompanhá-la com segurança.

How to Reset a WordPress Password from phpMyAdmin

Por que redefinir uma senha do WordPress no phpMyAdmin?

O WordPress facilita muito a recuperação de uma senha perdida.

Basta acessar a tela de login do seu site WordPress e clicar no link “Esqueceu a senha?

Click on 'Lost Your Password?'

Ao clicar no link, você será levado à página de redefinição de senha. Depois de inserir seu nome de usuário ou endereço de e-mail, o WordPress enviará um link de redefinição de senha para o endereço de e-mail associado.

No entanto, se você não tiver acesso a esse endereço de e-mail ou se o seu site WordPress não enviar um e-mail, não será possível redefinir sua senha.

Nessa situação, você precisará redefinir a senha do WordPress diretamente no banco de dados. A maneira mais fácil de fazer isso é usar o phpMyAdmin.

Dito isso, vamos ver como você pode redefinir facilmente uma senha do WordPress no phpMyAdmin.

Como redefinir uma senha do WordPress no phpMyAdmin

Subscribe to WPBeginner

Se não quiser assistir ao tutorial em vídeo, você pode continuar lendo a versão em texto abaixo.

Primeiro, você precisa fazer login no painel do cPanel da sua conta de hospedagem do WordPress. Em seguida, navegue até a seção Databases (Bancos de dados), onde poderá clicar no ícone phpMyAdmin.

phpmyadmin panel in Bluehost

Isso iniciará o aplicativo phpMyAdmin.

Aqui, você precisa selecionar o banco de dados do WordPress no painel esquerdo.

Select Your WordPress Database

Agora você verá a lista de tabelas no banco de dados do WordPress.

Você precisa procurar a tabela wp_users nessa lista e clicar no link “Browse” (Procurar) ao lado dela.

Click the wp_users Browse Link

Observação: Os nomes das tabelas no seu banco de dados do WordPress podem ter um prefixo diferente daquele que estamos mostrando em nossa captura de tela. Alterar os prefixos das tabelas pode aumentar a segurança do seu site WordPress.

Agora você verá as linhas na tabela de usuários do WordPress. Vá em frente e clique no botão de edição ao lado do nome de usuário cuja senha você deseja alterar.

Click the Edit Button Next to the Username

O PhpMyAdmin mostrará um formulário com todos os campos de informações do usuário.

Você precisará excluir o valor do campo user_pass e substituí-lo pela sua nova senha. Na coluna function (função), selecione MD5 no menu suspenso e clique no botão Go (Ir) na parte inferior do formulário.

Select MD5 and Type Your New Password

Sua senha será criptografada usando o hash MD5 e, em seguida, será armazenada no banco de dados.

Parabéns! Você alterou com êxito sua senha do WordPress usando o phpMyAdmin.

Alguns de vocês podem estar se perguntando por que selecionamos o hash MD5 para criptografar a senha. O WordPress usava anteriormente o hash MD5 para criptografar senhas, mas desde o WordPress 2.5 ele vem usando tecnologias de criptografia mais fortes.

No entanto, o WordPress ainda reconhece o MD5 para oferecer compatibilidade com versões anteriores. Assim que você fizer login usando uma cadeia de senhas armazenada como um hash MD5, o WordPress a alterará automaticamente para usar os algoritmos de criptografia mais recentes.

Guias especializados sobre senhas no WordPress

Agora que você sabe como redefinir uma senha do WordPress no phpMyAdmin, talvez queira ver outros artigos relacionados a senhas no WordPress.

Esperamos que este tutorial tenha ajudado você a aprender como redefinir uma senha do WordPress no phpMyAdmin. Talvez você também queira ver nosso guia passo a passo definitivo de segurança do WordPress para manter seu site seguro ou nossa seleção de especialistas de plug-ins obrigatórios.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

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.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

286 ComentáriosDeixe uma resposta

  1. Prescott Chartier

    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

      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.

      Administrador

  2. Moinuddin Waheed

    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

      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.

      Administrador

    • WPBeginner Support

      You’re welcome :)

      Administrador

  3. Branson

    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

      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.

      Administrador

  4. Stem

    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

      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.

      Administrador

  5. Brett

    MD5 pushed it through. Thank you!

    • WPBeginner Support

      You’re welcome! Glad our guide was helpful :)

      Administrador

  6. blossominglotus

    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

      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.

      Administrador

  7. Guillaume Frasca

    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

      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!

      Administrador

  8. James Wallis

    Saved my skin with this–thank you so much.

    • WPBeginner Support

      Glad our guide was helpful!

      Administrador

  9. Joseph

    Thanks for the good job
    I was able to locate and change my WordPress details with this tutorial

    • WPBeginner Support

      Glad our guide could help!

      Administrador

  10. Randy

    I tried this and I got a white screen on my website. Please help

  11. Syed Waris

    Thank you so much.
    The article was very helpful for me.

    • WPBeginner Support

      Glad our guide was helpful!

      Administrador

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

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

      Administrador

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

      Administrador

    • WPBeginner Support

      Glad our guide was able to help :)

      Administrador

  15. Arsène

    It worked, thank you very much

    • WPBeginner Support

      Glad our guide could help :)

      Administrador

  16. 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 :)

      Administrador

  17. John

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

  18. Tayyab Shafique

    it was really helpful.
    Thanks :)

    • WPBeginner Support

      You’re welcome :)

      Administrador

  19. Saad

    thanks a lot for saving my day …

    • WPBeginner Support

      You’re welcome :)

      Administrador

  20. Anita

    Thank you, this saved me a headache :D

    • WPBeginner Support

      Glad our guide was helpful :)

      Administrador

  21. Elias

    You’re a genius. Thank you

    • WPBeginner Support

      You’re welcome :)

      Administrador

  22. 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 :)

      Administrador

  23. Robin B

    So, so helpful. Thanks so much!

    • WPBeginner Support

      You’re welcome :)

      Administrador

  24. Chidi Ejikeugwu

    why did you recommend to use MD5 when changing password?

    • WPBeginner Support

      That is what WordPress uses for passwords by default

      Administrador

  25. japsimran singh

    Thank You Buddy.
    It really helped.

    • WPBeginner Support

      Glad our article could help :)

      Administrador

    • WPBeginner Support

      Glad our guide was helpful :)

      Administrador

  26. Nthtuko Mbhele

    Thank you so much, thank you, thank you

    • WPBeginner Support

      You’re welcome, glad our guide was helpful :)

      Administrador

  27. Premier

    Thank you! Solved my problem!

    • WPBeginner Support

      Glad our guide was able to help :)

      Administrador

    • WPBeginner Support

      You’re welcome, glad our guide was able to help :)

      Administrador

    • WPBeginner Support

      You’re welcome :)

      Administrador

    • 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

      Administrador

  28. Pranoy

    very very thank you
    big headache solved

    • WPBeginner Support

      Glad our guide could be helpful :)

      Administrador

  29. Urs Keller

    You did super great job. I could reset my pw. Thank you!

    • WPBeginner Support

      You’re welcome, glad we could help :)

      Administrador

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

      Administrador

  31. Cattel

    Direct explanation! Thanks!

    • WPBeginner Support

      You’re welcome :)

      Administrador

  32. 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 :)

      Administrador

  33. Terry

    Thank you so much for this article, it helped.

    • WPBeginner Support

      Glad our article was helpful :)

      Administrador

  34. 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 :)

      Administrador

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

      Administrador

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

      Administrador

  37. Donny

    Really helpful, thanks a lot.

    • WPBeginner Support

      You’re welcome :)

      Administrador

  38. zorax

    Thank you, it was really helpful!

    • WPBeginner Support

      You’re welcome :)

      Administrador

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

      Administrador

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

      Administrador

  41. Sanyukta Khot

    Thank you for a very useful article! Saved me a lot of time!

    • WPBeginner Support

      You’re welcome :)

      Administrador

  42. Dee

    Awesome!! Thanks so much for the valuable information.
    Please continue to help us newbies…

    • WPBeginner Support

      Glad our articles are helpful :)

      Administrador

  43. lordhunos

    Wow, it works! You made my day! Thank you very much!

    • WPBeginner Support

      Glad our article could help :)

      Administrador

  44. Boitumelo

    This was very very helpful.

    Thank you very much

    • WPBeginner Support

      Glad it was helpful :)

      Administrador

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.