Voulez-vous réinitialiser votre mot de passe WordPress en utilisant phpMyAdmin ?
Si vous ne parvenez pas à réinitialiser votre mot de passe WordPress, il existe un moyen de le réinitialiser directement dans votre base de données WordPress à l’aide de phpMyAdmin.
Dans cet article, nous allons vous afficher comment réinitialiser facilement un mot de passe WordPress depuis phpMyAdmin.
Pourquoi réinitialiser un mot de passe WordPress depuis phpMyAdmin ?
WordPress facilite grandement la récupération d’un mot de passe perdu.
Il vous suffit de vous rendre sur l’écran de connexion de votre site WordPress et de cliquer sur le lien » Vous avez perdu votre mot de passe ? « .
Lorsque vous cliquez sur le lien, vous accédez à la page de réinitialisation du mot de passe. Lorsque vous saisissez votre nom d’utilisateur ou votre adresse e-mail, WordPress envoie un lien de réinitialisation du mot de passe à l’adresse e-mail saisie.
Toutefois, si vous n’avez pas accès à cette adresse e-mail, ou si votre site WordPress n’envoie pas d’e-mail, vous ne pourrez pas réinitialiser votre mot de passe.
Dans une telle situation, vous devrez réinitialiser votre mot de passe WordPress directement dans la base de données. La manière la plus simple de le faire est d’utiliser phpMyAdmin.
Ceci étant dit, voyons comment réinitialiser facilement un mot de passe WordPress à partir de phpMyAdmin.
Comment réinitialiser un mot de passe WordPress à partir de phpMyAdmin
Si vous ne souhaitez pas regarder le tutoriel vidéo, vous pouvez continuer à lire la version texte ci-dessous.
Tout d’abord, vous devez vous connecter au Tableau de bord WordPress de votre hébergeur. Ensuite, vous devez naviguer jusqu’à la section Bases de données où vous pouvez cliquer sur l’icône phpMyAdmin.
Ceci lancera l’application phpMyAdmin.
Ici, vous devez sélectionner votre base de données WordPress dans le panneau de gauche.
Vous verrez maintenant la liste des tables de votre base de données WordPress.
Vous devez rechercher le tableau wp_users
dans cette liste et cliquer sur le lien « Parcourir » situé à côté.
Note : Les noms de tables dans votre base de données WordPress peuvent avoir un préfixe différent de celui que nous affichons dans notre capture d’écran. Modifier les préfixes des tables peut améliorer la sécurité de votre site WordPress.
Vous verrez maintenant les lignes de votre tableau d’utilisateurs/utilisatrices WordPress. Allez-y et cliquez sur le bouton modifier à côté de l’identifiant dont vous souhaitez modifier le mot de passe.
PhpMyAdmin affichera un formulaire avec tous les champs d’information sur les utilisateurs/utilisatrices.
Vous devrez supprimer la valeur du champ user_pass
et la remplacer par votre nouveau mot de passe. Dans la colonne fonction, sélectionnez MD5 dans le menu déroulant, puis cliquez sur le bouton Go au bas du formulaire.
Votre mot de passe sera chiffré à l’aide du hachage MD5, puis il sera stocké dans la base de données.
Félicitations ! Vous avez bien modifié le mot de passe de WordPress en utilisant phpMyAdmin.
Certains d’entre vous se demandent peut-être pourquoi nous avons sélectionné le hachage MD5 pour chiffrer le mot de passe. WordPress utilisait auparavant le hachage MD5 pour crypter les mots de passe, mais depuis WordPress 2.5, il utilise des technologies de chiffrement plus puissantes.
Cependant, WordPress reconnaît toujours le MD5 pour assurer la compatibilité ascendante. Dès que vous vous connectez en utilisant une chaîne de mots de passe stockée sous forme de hachage MD5, WordPress la modifie automatiquement pour utiliser les algorithmes de chiffrement plus récents.
Guides d’experts sur les mots de passe dans WordPress
Maintenant que vous savez comment réinitialiser un mot de passe WordPress depuis phpMyAdmin, vous pouvez consulter d’autres articles liés aux mots de passe dans WordPress.
- Comment modifier votre mot de passe sur WordPress (Guide du débutant)
- Comment réinitialiser les mots de passe de tous les utilisateurs/utilisatrices dans WordPress
- Outil de personnalisation de la page de réinitialisation du mot de passe de WordPress
- Comment forcer les utilisateurs/utilisatrices à modifier leur mot de passe sur WordPress – Expire Password
- Mot de passe oublié ? Comment récupérer un mot de passe perdu sur WordPress
- Comment forcer les utilisateurs/utilisatrices à utiliser des mots de passe forts dans WordPress
- Comment ajouter l’authentification à deux facteurs dans WordPress (méthode gratuite)
- Comment permettre aux utilisateurs de masquer/afficher leur mot de passe sur l’écran de connexion de WordPress ?
- Comment gérer facilement et en toute sécurité les mots de passe (Guide du débutant)
Nous espérons que ce tutoriel vous a aidé à apprendre comment réinitialiser un mot de passe WordPress depuis phpMyAdmin. Vous pouvez également consulter notre guide ultime de sécurité WordPress étape par étape pour garder votre site WordPress en sécurité ou notre choix d’experts des extensions incontournables.
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 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!
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.
Administrateur
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.
Administrateur
Laxman says
Thank You very much…
WPBeginner Support says
You’re welcome
Administrateur
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.
Administrateur
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.
Administrateur
Brett says
MD5 pushed it through. Thank you!
WPBeginner Support says
You’re welcome! Glad our guide was helpful
Administrateur
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.
Administrateur
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!
Administrateur
James Wallis says
Saved my skin with this–thank you so much.
WPBeginner Support says
Glad our guide was helpful!
Administrateur
Joseph says
Thanks for the good job
I was able to locate and change my WordPress details with this tutorial
WPBeginner Support says
Glad our guide could help!
Administrateur
Randy says
I tried this and I got a white screen on my website. Please help
WPBeginner Support says
Changing your password shouldn’t cause that specific issue, there is a good chance a plugin may have had a conflict. You would want to follow our guide below for how to fix the white screen error:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/
Administrateur
Syed Waris says
Thank you so much.
The article was very helpful for me.
WPBeginner Support says
Glad our guide was helpful!
Administrateur
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.
aisha says
I tried this but didn’t work. Need help
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.
Administrateur
Altuğ G. says
This didn’t work for me
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
Administrateur
Pakodev says
Thanks! It worked.
WPBeginner Support says
Glad our guide was able to help
Administrateur
Arsène says
It worked, thank you very much
WPBeginner Support says
Glad our guide could help
Administrateur
Aikya Dasgupta says
Thank you very much. This worked for me and I am now able to access my WordPress dashboard.
WPBeginner Support says
Glad our guide was helpful
Administrateur
John says
Perfect – saved me from a big issue.. thanks! Now, about getting those WP system emails working again…………….!
WPBeginner Support says
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/
Administrateur
Tayyab Shafique says
it was really helpful.
Thanks
WPBeginner Support says
You’re welcome
Administrateur
Saad says
thanks a lot for saving my day …
WPBeginner Support says
You’re welcome
Administrateur
Anita says
Thank you, this saved me a headache
WPBeginner Support says
Glad our guide was helpful
Administrateur
Elias says
You’re a genius. Thank you
WPBeginner Support says
You’re welcome
Administrateur
jackie says
REALLY helpful. I’ve been struggling for weeks and now i can finally log in again! thanks a lot!
WPBeginner Support says
You’re welcome, glad our guide was helpful
Administrateur
Robin B says
So, so helpful. Thanks so much!
WPBeginner Support says
You’re welcome
Administrateur
Chidi Ejikeugwu says
why did you recommend to use MD5 when changing password?
WPBeginner Support says
That is what WordPress uses for passwords by default
Administrateur
japsimran singh says
Thank You Buddy.
It really helped.
WPBeginner Support says
Glad our article could help
Administrateur
banson says
Thank you problem Solved
WPBeginner Support says
Glad our guide was helpful
Administrateur
Nthtuko Mbhele says
Thank you so much, thank you, thank you
WPBeginner Support says
You’re welcome, glad our guide was helpful
Administrateur
Premier says
Thank you! Solved my problem!
WPBeginner Support says
Glad our guide was able to help
Administrateur
Yann says
Worked wonders, thanks!
WPBeginner Support says
You’re welcome, glad our guide was able to help
Administrateur
Marco says
thank you!!!!!!
WPBeginner Support says
You’re welcome
Administrateur
Anand says
Did not work for me.
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
Administrateur
Pranoy says
very very thank you
big headache solved
WPBeginner Support says
Glad our guide could be helpful
Administrateur
Urs Keller says
You did super great job. I could reset my pw. Thank you!
WPBeginner Support says
You’re welcome, glad we could help
Administrateur
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
Administrateur
Cattel says
Direct explanation! Thanks!
WPBeginner Support says
You’re welcome
Administrateur
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.
WPBeginner Support says
Glad our guide could be helpful
Administrateur
Terry says
Thank you so much for this article, it helped.
WPBeginner Support says
Glad our article was helpful
Administrateur
Umar Gondal says
May Allah bless you with eman. This article helped me to reset password of my website. Very informative article
WPBeginner Support says
Glad our article could be helpful
Administrateur
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.
Administrateur
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.
Administrateur
Donny says
Really helpful, thanks a lot.
WPBeginner Support says
You’re welcome
Administrateur
zorax says
Thank you, it was really helpful!
WPBeginner Support says
You’re welcome
Administrateur
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.
Administrateur
Ammar Falak says
It didn’t work for us. I am still locked out of my WordPress Account. Please help!
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.
Administrateur
Sanyukta Khot says
Thank you for a very useful article! Saved me a lot of time!
WPBeginner Support says
You’re welcome
Administrateur
Dee says
Awesome!! Thanks so much for the valuable information.
Please continue to help us newbies…
WPBeginner Support says
Glad our articles are helpful
Administrateur
lordhunos says
Wow, it works! You made my day! Thank you very much!
WPBeginner Support says
Glad our article could help
Administrateur
Boitumelo says
This was very very helpful.
Thank you very much
WPBeginner Support says
Glad it was helpful
Administrateur