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

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

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

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.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

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.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

287件のコメント返信を残す

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

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

      管理者

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

      管理者

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

      管理者

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

      管理者

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

      管理者

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

      管理者

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。