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

phpMyAdminからWordPressのパスワードをリセットする方法

WordPressのパスワードのリセットは、通常は簡単なプロセスです。しかし、標準的な方法ではうまくいかず、サイトからロックアウトされてしまうことがあります。

何人かの読者がこの問題に遭遇し、アカウントにアクセスする最良の方法についてアドバイスを求めました。幸いなことに、ホスティングサービスのコントロールパネルにあるphpMyAdminツールを使って、WordPressデータベースから直接パスワードをリセットすることができます。

この投稿では、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を紹介します。各ステップをわかりやすく説明しますので、データベースに詳しくない方でも安心してご覧いただけます。

How to Reset a WordPress Password from phpMyAdmin

なぜphpMyAdminからWordPressのパスワードをリセットするのか?

WordPressは、紛失したパスワードを復元するのがとても簡単です。

WordPressサイトのログイン画面にアクセスし、「Lost your password?

Click on 'Lost Your Password?'

リンクをクリックすると、パスワードリセットのページに移動します。ユーザー名またはメールアドレスを入力すると、WordPressから関連するメールアドレスにパスワードリセットリンクが送信されます。

しかし、そのメールアドレスにアクセスできない場合や、WordPressサイトがメールの送信に失敗した場合は、パスワードをリセットすることはできません。

このような状況では、WordPressのパスワードをデータベースで直接リセットする必要があります。それを行う最も簡単な方法は、phpMyAdminを使用することです。

それでは、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を見てみましょう。

phpMyAdminからWordPressのパスワードをリセットする方法

Subscribe to WPBeginner

動画チュートリアルを見たくない場合は、下のテキスト版を読み進めてください。

まず、WordPressホスティングアカウントのcPanelダッシュボードにログインする必要があります。次に、データベースセクションに移動し、phpMyAdminアイコンをクリックします。

phpmyadmin panel in Bluehost

phpMyAdminアプリが起動します。

ここで、左のペインからWordPressデータベースを選択する必要があります。

Select Your WordPress Database

WordPressデータベースのテーブル一覧が表示されます。

このリストからwp_usersテーブルを探し、その横にある「Browse」リンクをクリックする必要がある。

Click the wp_users Browse Link

注:WordPressデータベースのテーブル名は、スクリーンショットに表示されているものとは異なる接頭辞を持つ可能性があります。テーブル接頭辞を変更することで、WordPressサイトのセキュリティを向上させることができます。

WordPressユーザーテーブルの行が表示されます。パスワードを変更したいユーザー名の横にある編集ボタンをクリックしてください。

Click the Edit Button Next to the Username

PhpMyAdminは、すべてのユーザー情報フィールドを持つフォームを表示します。

user_passフィールドの値を削除し、新しいパスワードに置き換える必要があります。ファンクション・カラムで、ドロップダウン・メニューからMD5を選択し、フォーム下部のGoボタンをクリックします。

Select MD5 and Type Your New Password

パスワードはMD5ハッシュを使って暗号化され、データベースに保存されます。

おめでとうございます!phpMyAdminを使用してWordPressパスワードの変更に成功しました。

なぜパスワードを暗号化するのにMD5ハッシュを選んだのか、不思議に思う方もいらっしゃるかもしれません。WordPressは以前、パスワードの暗号化にMD5ハッシュを使用していましたが、WordPress 2.5以降、より強力な暗号化技術を使用しています。

しかし、WordPressは後方互換性を提供するためにMD5をまだ認識しています。MD5ハッシュとして保存されたパスワード文字列を使用してログインするとすぐに、WordPressは自動的に新しい暗号化アルゴリズムを使用するように変更します。

WordPressのパスワードに関するエキスパートガイド

phpMyAdminからWordPressのパスワードをリセットする方法がわかったところで、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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

286件のコメントLeave a Reply

  1. I’ve tried this several times and each time it still says the password is incorrect, and yes I have the correct database.

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

      Admin

  2. 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?

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

      Admin

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

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

      Admin

  4. 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.”

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

      Admin

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

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

      Admin

  6. 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?

    • 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!

      Admin

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

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

      Admin

    • 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

      Admin

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

    • 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

      Admin

  9. 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 ?

    • You would want to double-check that you encrypted the password using MD5 as the most common reason

      Admin

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

  11. May Allah bless you with eman. This article helped me to reset password of my website. Very informative article

  12. The email could not be sent. Possible reason: your host may have disabled the mail() function.

    error shows

    • If you have that error on your site, you would want to start by reaching out to your hosting provider.

      Admin

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

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

      Admin

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

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

      Admin

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

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.