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.

アバター

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.

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

      Admin

  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.

      Admin

  3. Laxman

    Thank You very much…

    • WPBeginner Support

      You’re welcome :)

      Admin

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

      Admin

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

      Admin

  6. Brett

    MD5 pushed it through. Thank you!

    • WPBeginner Support

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

      Admin

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

      Admin

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

      Admin

  9. James Wallis

    Saved my skin with this–thank you so much.

    • WPBeginner Support

      Glad our guide was helpful!

      Admin

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

      Admin

  11. Randy

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

  12. Syed Waris

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

    • WPBeginner Support

      Glad our guide was helpful!

      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.