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のパスワードをリセットする方法

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$編集プロセスをご覧ください。

アバター

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

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

  1. Liang Huang

    Thank you so much. The instructions were easy enough to follow. God bless you

  2. Luke

    I have no WP_users at all. What do I do?

  3. Abhishek Rawal

    Thank You so much!
    Worked like a charm

  4. Stegemüller

    I have fighting with passwords for hours. Then I found this guide and I was home free. Thank you very much.

  5. Birgit

    Super! Helped me a lot.

  6. Aarthi Rengaraj

    Perfect tips and was very helpful in getting my client’s domains password changed. I was struggling and that “MD5” tag thing was actually missing. Thanks so much. This is the best place for any WordPress queries.

  7. Susan

    I am locked out of Wordpress, my site is down. I can go into my c-panel. If I change the password to an encrypted password, do I now copy that and use it to log in? I really don’t get it? It is encrypted isn’t it? What do I now use to log into my WordPress? Do I use the log in name and email that is there in the c-panel?
    Thanks

    • Charles Allen

      Susan, the MD5 is like a secret recipe where one ingredient is missing. Let’s say we are pen pals and we are going to meet for the very first time. Since I have never seen you, I need a way to know that it is really you. One way to do this if you can send me a piece of homemade cake and a list of all but one secret ingredient. When we first meet, you will finally tell me what the secret ingredient is, and then I will bake my own cake with the exact recipe. If the cake I makes is exactly same as the cake you sent me, then I know you are really my pen pal. The MD5 is the completed cake, and the plain password you came up with is the secret ingredient. When you send the password to WordPress, it will use your secrete password ingredient to see if it can bake its own MD5 cake. When you log into WP, use the plain text password. Your WP user name is usually different from your cPanel name. If you forgot your user name, it will be listed as “user_login” in the database.

  8. Jivanti

    Hello there,

    I seem to be getting the username is invalid commad everytime I try to login.
    But the username and password is correct. It seemed like I might have created a different user name the first time I got locked out of my account. Or I forgot to renew my domain. I really can’t remember.

    When I use a different username, I’m able to log in into WP dashboard and do theme changes but it is not reflecting in my current website.

    The current dashboard does not have any of my old post or images.

    I logged into to my cpanel and checked under the myphpadmin, there is 2 database. One of it contain the old posts and images. I tried the above method using the MD5, I’m still unable to acess the old user id and my old post.

    I suspect the current active site is configured at the old database.

    Another question, when I reset the password through MD5, do I copy this same new rest password that was generated in the phpadmin screen ( the long one) and paste it in the wp login screen. I tried it. It didn’t work.

    Please help.

  9. Randy

    Works well.. Thank you!

  10. slim

    i just followed the process but it did not work out

    • hendryhowser

      make sure your user_login is the same as user_nicename.

  11. david h

    Great help – thanks!

  12. Eduardo Alfaro

    Thank you very much guys! this was great

  13. Harry

    Sir I was changed my wordpress admin password in the same way but now it my dashboard is not opening it is showing a wrong password but I have changed it. Sir please help me………

  14. yuseph

    I tried to do it without choosing md5 and it won’t do it. Thanks much appreciated

  15. Spock

    Good advice, but spoken too rapidly. Slow down the delivery.

  16. Charlie Sasser

    An easier way is to use phpadmin and just change the email address to your current email and then go to regular login and click on “Forgot Password” and reset from email link. No need to worry about MP5 and all that stuff.

  17. Greg

    Thank you for the MD5 function in phpmyadmin.
    Very helpful to me.

  18. Akash

    but im using defult url is it safe or not for my site

  19. John

    I wish people who make training videos would slow down they are always rushing through it as if they have a train to catch, So slow down and you will have great training videos…

  20. Dee

    Just wanted to say tell you how great your daily email is! Thanks :)

  21. Peter

    I don´t know what kind of hash it is, but it´s not default form of MD5. Wordpress password hasher does the job fine.

  22. Darshan Krishnan

    Thank you very much, Syed and team WPBeginner.
    My site was put in maintenance mode and hence password reset option did not work.
    I changed the password as you suggested and everything is back to normal.
    Much thanks for the awesome content. :)

  23. Manoj

    Really would like to say thank you as I find it really hard to change the password of my site

  24. John

    Awesome, thank you very much this has been a massive help

  25. Ssk

    Awesome! Helped me reset my password when I kept getting the “Host disabled the mail () function” error.

  26. Luis

    Hi! I’m s using mamp as local host, and i’m having some troubles with it: I can’t recover my wordpress password by setting a new one on phpMyadmin. It shows that the password row has been updated to the new one I chose, but it is not recognized by wordpress.org when i try to log in. Can’t figure out what may be the problem. I’m giving up on hosting my site on MAMP. I’ve seen that I can create a new database with cPanel, since I’m paying for hosting service from namecheap. What do you suggest for starting a new project from zero? Thanks a lot!

  27. Sieu Nguyen

    Thanks you. I lost my password and I used this way to create a new password. :)

  28. Benji

    Unfortunately this isn’t working for me. I’m doing exactly what your asking, but when I made a new password using the MD5 Hash and copy and paste that new password in the field > save by hitting Go > then go to refresh my Website admin log in page, I enter the new password and still tells me I’ve entered the wrong password??? I’ve tried email recovery but never get sent an email… So painful!

    Any idea’s?

    • Joe

      I’m getting this too, it is driving me mad! Would really appreciate some help on this

      • Dave

        You don’t use the hashed password. Let’s say you set your new password to “letmeinalready,” choose MD5, and save it. You wouldn’t use that hashed password to get in – you’d use “letmeinalready”

      • Linda

        Same problem here. I have followed all instructions to a T and it’s just not working. Can my web host chat help me? Me web developer has disappeared with this information.

        • WPBeginner Support

          Yes, if you reach out to your hosting provider they should have access to update your password for you

  29. Erik Chhuo

    wow, this is way too fast a video clip for me. Just can’t follow any. Didn’t even where to start.

  30. Karen

    Do you have to be logged into your admin to start with? I can’t even log in to do any of the above!!!

  31. Heather

    This is not working for me…still cannot login

    • jan

      awesome, very old post, but still being read and replied to!

      I used Duplicator to copy a one-page WP-site to localhost (XAMPP). Made a new database as instructed, password and everything.

      When I try to enter local password (or is it the database password?), screen reverts to site published on cloud host.

      Localhost DB has two entries: for Duplicator (prefix 2ecxx_) and what I thought was local copy (prefix wp_). But the ‘local’ DB _wp entries are actually referring to the cloud hosting environment.

      Tried to change wp_user username en PW (MD5), but does not work

      Changed siteurl in _wp_options to localhost, does not help

      When I use 2eczz_users username and PW, page also moves back to site published in the cloud

  32. stalony

    Does this tutorial still relevant in 2017 ????

  33. Mohamed Gees

    Thanks A lot, VERY INFORMATIVE ARTICLE, i was up and down last two days. . you saved me. Thanks again

  34. Ringo

    Really would like to say thank you as I find it really hard to change the password of my site

  35. Qamar Naveed

    Very informative article, i was stuck at database name, finally found with the help of this article.

  36. Rachel Ortiz

    Thanks so much. I am NOT a programmer whatsoever and these instructions were easy enough for me to get. This was a lifesaver.

  37. Kareem Said

    Thanks for the MD5 tip

  38. Denis

    This was very good. thanks !

  39. Esteban Zerega

    great contribution master! thank you so much!

  40. Venkat

    It’s Awesome bro..you saved my time. Its working fine for me

  41. Tamara

    I have followed the steps exactly and still can’t log in. Is there anything else I can do?

  42. Csbr

    The layout has changed a lot since this was posted- the admin tab or the browse tabs are nowhere to be seen..

  43. Charles Kinga

    Lot of thanx guys. It has worked for me and was stranded on my website security but now am fine.
    The procedures are very user friendly hence easy to understand.
    God bless

  44. Camille

    I did all those steps but I still cannot login into my wordpress wp-admin. Can you help me? Thanks.

  45. John Osmond

    Why not use the md5 hash that is already there in phpMyAdmin? Just open the drop-down in the functions column. I will md5 hash your plain text password for you.

  46. Sara Moreira

    genuine <3
    thank you for all the know-how and tricks you share!

    • WPBeginner Support

      Thanks Sara :) we are glad you find them useful. Don’t forget to follow us on Facebook for more WordPress tips and tutorials.

      管理者

  47. Elgin Martinez

    Sir/Madam
    I am interested in becoming a professional web designer using the Wordpress platform but don’t know where to start. Any advise thanks.

  48. Frank Nsia

    Thank you so much. The instructions were easy enough for even me to follow. God bless you

返信を残す

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