phpMyAdminを使ってWordPressのパスワードをリセットしたいですか?
WordPressのパスワードをリセットできない場合は、phpMyAdminを使用してWordPressのデータベースで直接パスワードをリセットする方法があります。
この投稿では、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を紹介します。
なぜphpMyAdminからWordPressのパスワードをリセットするのか?
WordPressは、紛失したパスワードを復元するのがとても簡単です。
WordPressサイトのログイン画面にアクセスし、「Lost your password?
リンクをクリックすると、パスワードリセットのページに移動します。ユーザー名またはメールアドレスを入力すると、WordPressから関連するメールアドレスにパスワードリセットリンクが送信されます。
しかし、そのメールアドレスにアクセスできない場合や、WordPressサイトがメールの送信に失敗した場合は、パスワードをリセットすることはできません。
このような状況では、WordPressのパスワードをデータベースで直接リセットする必要があります。それを行う最も簡単な方法は、phpMyAdminを使用することです。
それでは、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を見てみましょう。
phpMyAdminからWordPressのパスワードをリセットする方法
動画チュートリアルを見たくない場合は、下のテキスト版を読み進めてください。
まず、WordPressホスティングアカウントのcPanelダッシュボードにログインする必要があります。次に、データベースセクションに移動し、phpMyAdminアイコンをクリックします。
phpMyAdminアプリが起動します。
ここで、左のペインからWordPressデータベースを選択する必要があります。
WordPressデータベースのテーブル一覧が表示されます。
このリストからwp_users
テーブルを探し、その横にある「Browse」リンクをクリックする必要がある。
注:WordPressデータベースのテーブル名は、スクリーンショットに表示されているものとは異なる接頭辞を持つ可能性があります。テーブル接頭辞を変更することで、WordPressサイトのセキュリティを向上させることができます。
WordPressユーザーテーブルの行が表示されます。パスワードを変更したいユーザー名の横にある編集ボタンをクリックしてください。
PhpMyAdminは、すべてのユーザー情報フィールドを持つフォームを表示します。
user_pass
フィールドの値を削除し、新しいパスワードに置き換える必要があります。ファンクション・カラムで、ドロップダウン・メニューからMD5を選択し、フォーム下部のGoボタンをクリックします。
パスワードはMD5ハッシュを使って暗号化され、データベースに保存されます。
おめでとうございます!phpMyAdminを使用してWordPressパスワードの変更に成功しました。
なぜパスワードを暗号化するのにMD5ハッシュを選んだのか、不思議に思う方もいらっしゃるかもしれません。WordPressは以前、パスワードの暗号化にMD5ハッシュを使用していましたが、WordPress 2.5以降、より強力な暗号化技術を使用しています。
しかし、WordPressは後方互換性を提供するためにMD5をまだ認識しています。MD5ハッシュとして保存されたパスワード文字列を使用してログインするとすぐに、WordPressは自動的に新しい暗号化アルゴリズムを使用するように変更します。
WordPressのパスワードに関するエキスパートガイド
phpMyAdminからWordPressのパスワードをリセットする方法がわかったところで、WordPressのパスワードに関連する他の投稿もご覧ください。
- WordPressでパスワードを変更する方法(初心者ガイド)
- WordPressですべてのユーザーのパスワードをリセットする方法
- WordPressのパスワード再設定ページをカスタマイズする方法
- WordPressでユーザーにパスワード変更を強制する方法 – Expire Password
- パスワードをお忘れですか?WordPressでパスワードを紛失した場合の復旧方法
- WordPressでユーザーに強力なパスワードを強制する方法
- WordPressで2要素認証を追加する方法(無料方法)
- WordPressのログイン画面でユーザーにパスワードの非表示/表示を許可する方法
- パスワードを簡単かつ安全に管理する方法(初心者ガイド)
このチュートリアルで、phpMyAdmin から WordPress のパスワードをリセットする方法をご理解いただけたでしょうか。WordPress サイトを安全に保つための究極のステップバイステップWordPress セキュリティガイド、または専門家が選んだ必携プラグインもご覧ください。
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.
管理者
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.
管理者
Laxman says
Thank You very much…
WPBeginner Support says
You’re welcome
管理者
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.
管理者
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.
管理者
Brett says
MD5 pushed it through. Thank you!
WPBeginner Support says
You’re welcome! Glad our guide was helpful
管理者
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.
管理者
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!
管理者
James Wallis says
Saved my skin with this–thank you so much.
WPBeginner Support says
Glad our guide was helpful!
管理者
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!
管理者
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/
管理者
Syed Waris says
Thank you so much.
The article was very helpful for me.
WPBeginner Support says
Glad our guide was helpful!
管理者
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.
管理者
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
管理者
Pakodev says
Thanks! It worked.
WPBeginner Support says
Glad our guide was able to help
管理者
Arsène says
It worked, thank you very much
WPBeginner Support says
Glad our guide could help
管理者
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
管理者
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/
管理者
Tayyab Shafique says
it was really helpful.
Thanks
WPBeginner Support says
You’re welcome
管理者
Saad says
thanks a lot for saving my day …
WPBeginner Support says
You’re welcome
管理者
Anita says
Thank you, this saved me a headache
WPBeginner Support says
Glad our guide was helpful
管理者
Elias says
You’re a genius. Thank you
WPBeginner Support says
You’re welcome
管理者
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
管理者
Robin B says
So, so helpful. Thanks so much!
WPBeginner Support says
You’re welcome
管理者
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
管理者
japsimran singh says
Thank You Buddy.
It really helped.
WPBeginner Support says
Glad our article could help
管理者
banson says
Thank you problem Solved
WPBeginner Support says
Glad our guide was helpful
管理者
Nthtuko Mbhele says
Thank you so much, thank you, thank you
WPBeginner Support says
You’re welcome, glad our guide was helpful
管理者
Premier says
Thank you! Solved my problem!
WPBeginner Support says
Glad our guide was able to help
管理者
Yann says
Worked wonders, thanks!
WPBeginner Support says
You’re welcome, glad our guide was able to help
管理者
Marco says
thank you!!!!!!
WPBeginner Support says
You’re welcome
管理者
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
管理者
Pranoy says
very very thank you
big headache solved
WPBeginner Support says
Glad our guide could be helpful
管理者
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
管理者
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
管理者
Cattel says
Direct explanation! Thanks!
WPBeginner Support says
You’re welcome
管理者
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
管理者
Terry says
Thank you so much for this article, it helped.
WPBeginner Support says
Glad our article was helpful
管理者
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
管理者
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.
管理者
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.
管理者
Donny says
Really helpful, thanks a lot.
WPBeginner Support says
You’re welcome
管理者
zorax says
Thank you, it was really helpful!
WPBeginner Support says
You’re welcome
管理者
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.
管理者
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.
管理者
Sanyukta Khot says
Thank you for a very useful article! Saved me a lot of time!
WPBeginner Support says
You’re welcome
管理者
Dee says
Awesome!! Thanks so much for the valuable information.
Please continue to help us newbies…
WPBeginner Support says
Glad our articles are helpful
管理者
lordhunos says
Wow, it works! You made my day! Thank you very much!
WPBeginner Support says
Glad our article could help
管理者
Boitumelo says
This was very very helpful.
Thank you very much
WPBeginner Support says
Glad it was helpful
管理者