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

    Hello,

    Added Https to all pages, says unsafe, attempt to login and no luck, hit forgot password system reverts to Mojo Page…changed password per instructions above still no luck…any ideas how to get https off wordpress?

  3. Tess says

    OK, I have followed these instructions and successfully changed my admin password in the database and I still get a failed login message when I login with it. I need help gaining access to my site, please.

  4. Edwin Schichter says

    Very simpel…. just change and save the users emailadress into something familiar in the database, click on forgot password in the wordpress login page :-)

  5. Andrew says

    Awesome thanks so much for taking the time to write this just recovered by site in 60 seconds – as a newbie rely on help online :)))

  6. Adeel Ahmed says

    Thanks a lot. I had the problem but it has been solved . Otherwise I felt miserable about my wordpress login password being stolen

  7. Razzaq says

    another simple method for get the password, after edit the record change the email address. On wp-admin login screen, click on forget password. You will get the new link of make a new password.

  8. Al says

    Thanks buddy, i used to do lots of stuff on my wordress blog few years ago but now i kind of forget how to do it. Your blog post refreshed my memory…thanks again

  9. Rose says

    Thank you so much! I couldn’t get into my new install of Word Press and of course it is the weekend. This is so well written that I was able to reset the admin password in one try.

  10. Ewan says

    How is this discussion affected by the salts in the wp-config file? Do we need to combine those when creating a new password?

  11. Marty says

    Over the last few weeks, I’ve had the pleasure of dealing with clients that didn’t have a reputable developer/designer and left them high and dry with little to no access of their OWN site, noway of re-setting the password through the recovery email, this guide WOULD have been great 2 weeks ago, but I’m sure I’ll be using it in the near future…

    cheers Syed..

    • Editorial Staff says

      You can do that as well. Then go click on reset button. Wait for the email to come. Then reset your password. Seems like a bit longer process, but to each their own.

      管理者

      • subbareddy says

        this helps very much when you are in local system . Password reset doesnt work some times in local server .

        I helped me a lot today

  12. stevelockridge says

    Fabulous!!! Thank you!!! My client contacted me because their previous designer vanished and left them with NO login information for ANYTHING. This saved us all a lot of headaches.

  13. sharphue says

    See that user_email field in the screenshot above? Just change the value to an e-mail address that you have access to. On the WP-Admin login screen, click “lost your password?” and type in the same e-mail address and you will receive a reset password link that will be easier than messing with MD5 hashing.

  14. W^L+ says

    There has been some talk about web applications moving to a hash of the password + another string, to make it harder for bad guys to get in. Do you think this is coming to WP soon? (I think Joomla and Drupal are already doing this.)

    • Editorial Staff says

      WordPress already has that built-in. You just have to add your own security keys in your wp-config.php file. Open it and you will see the place for it and a link where you can get your security keys from.

      管理者

  15. Jeff says

    Under the functions column, if you choose MD5, MySQl will automatically encrypt your password in MD5. Simply type your plaintext password in the main box.

    This is a little easier than using other sites.

  16. Utkarsh says

    You can also enter the password in plain text, and select MD5 from the function dropdown. It’ll automatically save the MD5 hash of the password in the database.

返信を残す

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