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!
管理者