phpMyAdminを使ってWordPressのパスワードをリセットしたいですか?
WordPressのパスワードをリセットできない場合は、phpMyAdminを使用してWordPressのデータベースで直接パスワードをリセットする方法があります。
この投稿では、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を紹介します。
なぜphpMyAdminからWordPressのパスワードをリセットするのか?
WordPressは、紛失したパスワードを復元するのがとても簡単です。
WordPressサイトのログイン画面にアクセスし、「Lost your password?
リンクをクリックすると、パスワードリセットのページに移動します。ユーザー名またはメールアドレスを入力すると、WordPressから関連するメールアドレスにパスワードリセットリンクが送信されます。
しかし、そのメールアドレスにアクセスできない場合や、WordPressサイトがメールの送信に失敗した場合は、パスワードをリセットすることはできません。
このような状況では、WordPressのパスワードをデータベースで直接リセットする必要があります。それを行う最も簡単な方法は、phpMyAdminを使用することです。
それでは、phpMyAdminからWordPressのパスワードを簡単にリセットする方法を見てみましょう。
phpMyAdminからWordPressのパスワードをリセットする方法
動画チュートリアルを見たくない場合は、下のテキスト版を読み進めてください。
まず、WordPressホスティングアカウントのcPanelダッシュボードにログインする必要があります。次に、データベースセクションに移動し、phpMyAdminアイコンをクリックします。
phpMyAdminアプリが起動します。
ここで、左のペインからWordPressデータベースを選択する必要があります。
WordPressデータベースのテーブル一覧が表示されます。
このリストからwp_users
テーブルを探し、その横にある「Browse」リンクをクリックする必要がある。
注:WordPressデータベースのテーブル名は、スクリーンショットに表示されているものとは異なる接頭辞を持つ可能性があります。テーブル接頭辞を変更することで、WordPressサイトのセキュリティを向上させることができます。
WordPressユーザーテーブルの行が表示されます。パスワードを変更したいユーザー名の横にある編集ボタンをクリックしてください。
PhpMyAdminは、すべてのユーザー情報フィールドを持つフォームを表示します。
user_pass
フィールドの値を削除し、新しいパスワードに置き換える必要があります。ファンクション・カラムで、ドロップダウン・メニューからMD5を選択し、フォーム下部のGoボタンをクリックします。
パスワードはMD5ハッシュを使って暗号化され、データベースに保存されます。
おめでとうございます!phpMyAdminを使用してWordPressパスワードの変更に成功しました。
なぜパスワードを暗号化するのにMD5ハッシュを選んだのか、不思議に思う方もいらっしゃるかもしれません。WordPressは以前、パスワードの暗号化にMD5ハッシュを使用していましたが、WordPress 2.5以降、より強力な暗号化技術を使用しています。
しかし、WordPressは後方互換性を提供するためにMD5をまだ認識しています。MD5ハッシュとして保存されたパスワード文字列を使用してログインするとすぐに、WordPressは自動的に新しい暗号化アルゴリズムを使用するように変更します。
WordPressのパスワードに関するエキスパートガイド
phpMyAdminからWordPressのパスワードをリセットする方法がわかったところで、WordPressのパスワードに関連する他の投稿もご覧ください。
- WordPressでパスワードを変更する方法(初心者ガイド)
- WordPressですべてのユーザーのパスワードをリセットする方法
- WordPressのパスワード再設定ページをカスタマイズする方法
- WordPressでユーザーにパスワード変更を強制する方法 – Expire Password
- パスワードをお忘れですか?WordPressでパスワードを紛失した場合の復旧方法
- WordPressでユーザーに強力なパスワードを強制する方法
- WordPressで2要素認証を追加する方法(無料方法)
- 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.
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!
Graham says
THANK YOU!!
I was caught up on the md5 encryption of the pw field. This really save my tail. I was using a member profile update which stripped all the email fields. This in turn also stripped mine and poof! Everyone’s password was deleted.
Seriously.
So, thank you a lot.
-Graham
Karen Seet says
How do I find my “hosting provider” so I can get to phpmyadmin? I am new to this.
Muhammad Talha says
Thanks a lot!
Edwin Calimlim says
Great post, i wasn’t able to access my WP site for months already but thanks to this post, it is really a big help for me. Thank you.
atif shahab says
Thanks alot. I was worried and stuck as well as i was unable to acess my WordPress dashboard for 2 hours. your recipe worked quickly. Thanks once again
WPBeginner Support says
Glad it helped you solve the issue
管理者
Niculina says
Thanks!! it worked! :):)
Joel says
Lifesaver, thank you!
alan says
What a fantastic email, new to C-panel but this tutorial was so clear I did it first time.
Great job.
Regards,
Alan
Trevor says
Thank you !!!
Pedro says
Did this now Jetpack gives me this error :
Jetpack could not contact WordPress.com: register_http_request_failed. This usually means something is incorrectly configured on your web host.
Operation timed out after 15000 milliseconds with 0 bytes received
Any tips on this?
Margie says
Thank you so much. The instructions were easy enough for even me to follow
Carina says
I wish it worked for me……I followed the directions [easy] but when I went to put in the MD5 hash numbers, they were exactly the same as what was already in the field value. This tells me that my problem is then not entering my user name and password that is the problem, but something completely different. …..:(
Thom Burlington says
Thank you, but ..
while I can now reset the password with the MD5 code, derived from the new password I created, say, “abc” , and I finish and go back to my wordpress adimin signin:
domain.org/wp-admin : username ; password
for the password do I now use “abc” ?
Thom Burlington says
Yes the password is “abc” – very nice – between your post and the video you are very clear, thank you.
Neal Kelshaw says
Not quite correct. If you choose MD5 as the function in the drop down menu, and then type the password in plain text it hashes the value to an MD5 value.
tobi says
awesome post thanks a lot
Jon O says
Just wanted to say a BIG thank you for this article! I was indeed hacked and had sought assistance from my hosting company and others.. but this article was the only straight forward approach that worked first time! Thanks so much!
WPBeginner Support says
Glad you found it helpful.
管理者
Tanya says
I spent hours trying to find a website to explain why I was logged onto my WP then 5 minutes later I couldn’t log onto it again.
Thank you so much for the simple video. Problem solved in 5 minutes!
You rock!
WPBeginner Support says
Glad you found it helpful.
管理者
Creina says
Thank you. For anyone that finds the video confusing just follow the written instructions.
ashish says
thank you so much for this tutorial…
Dairick says
Thank you for this turorial
Parbat Devkota says
thank you work charm.
Alexandra Jones says
I’m the dunce from Mars who can’t speak computer. I’ll start with this:
“The best place to look is your wp-config.php file which is located in your root WordPress Directory.”
OK–where is it and how do I get there? I can’t log into my site because it will not any accept any password resets. I tried Chris’s phone method and got in on my phone, but not on my laptop. and when I tried to post something on the phone, I got a message that I should install the latest Jetpack, but I had to log into WordPress again, and guess what–“Invalid username.”
Is any of you who found these instructions such a breeze willing to speak to me on the phone? I’m writing from my wit’s end. That’s where I am. I would so appreciate it! Cheers!
WPBeginner Support says
wp-config.php file resides on your web server. You can login to your web hosting control panel, locate the file manager, and then locate wp-config.php file. Alternately, you can also edit it using an FTP client.
管理者
Zania says
Thank You! Thank You! Easy and worked like a charm!
chrismj06 says
You have saved my life. Bless u!
Jill says
Thanks, you’re a lifesaver and this was easy to follow!
Kristen says
You saved the day! Thank you!
AMIT KUMAR says
Thank you ! I was simply trying to enter password. I never knew about the MD5 concept. Thanks again for a great tutorial.
Silviu says
Thank you
Dubb says
Awesome…you have saved the day once again my friend
Nigel says
Awesome, thanks.
Skye says
THANK YOU!!!!! Great article!
Kumar says
Work like charm!!
hendriyana says
Thanx !!! awesome.. helped for my problem….
Jaykesh says
Amazing, thanks for quick help.
luis says
Thanks a lot, I went into php admin and copy pasted the md5 password and i am in…..good job!
Muniyappa says
Thank you very much..
Tony Garcia says
A client’s developer passed away while on vacation of all things. You can only imagine what happened after that. Nobody knew anything of how their developer was doing things. Luckily I was able to locate where their databases were and got access to their PHPMyAdmin.
Voila!!! I have both of their lost sites back up and running with access to the back-ends because of this post.
Thank you!!!
Carol Long says
Thank you! Life saver!
Lori says
This saved me ENDLESS time. I’m not a tech novice but I am a novice at coding. These step by step instructions helped me regain access to my site! After losing access due to a “auto correct” error. (long story)
Thank you again!
christian gibson says
You say that WordPress generates an MD5 encryption of your password? But I seem to remember seeing somewhere on Stackoverflow that this is no longer true. They said: “The WordPress password hasher implements the Portable PHP password hashing framework, which is used in Content Management Systems like WordPress and Drupal”.
I know very little about encryption/decryption systems, but one thing does seem strange. In a WordPress website database you can can see in the user table a field called ‘user-pass’ with contents like ‘$P$BlBAsz6jcvS3rLGDiE81PwtwbEazKg1’.
All the hash values in this table begin with $P$B….. so what on earth is the point of including these leading 4 characters if they are all the same……?
Samson says
Thank you very much. saved me valuable time
Rod Salm says
As always, straight forward, very helpful tutorials. Right to the point and bang on accurate. Like this phpadmin tip for passwords.
Thank you!
Ben Glancy says
Or, if your admin account is the usual ID=1.
Open functions.php and put this code in
wp_set_password( “mypassword”, 1 );
Reload the page.
Uncomment code. Done.
Diana says
Soooo helpful! Thank you!!!!
raaga says
Thanks man. Very useful article.
Matthew Harris says
Thanks for the tip, I couldn’t quite remember. Here is a return tip for you:
You don’t need the external MD5 tool. Look on the screenshot there is a “Function” column with drop down boxes. On the user_pass field just select MD5 in the function column and type your new password in normal plain text in the input box next to it. When you save it phpMyAdmin will automatically md5 hash it for you.
Amir says
Great article. I found Matthew Harris’ tip simpler and tested it to work as well. Thanks!
Julian says
Mr. Harris approach worked like a charm! Thank you.
Kevin B. says
Very helpful. As a non-technical user, I felt powerless when an errant designer wouldn’t respond to my requests for passwords; this page with instructions filled the bill perfectly!
Many thanks,
KB
alex says
Thanks!
Gustavo says
Thanks for this great tip. I tried the “easiest” way above but couldn´t retrieve the automatic email because of some misterious server glitch.
I don´t know beans of PhP, so this kind of article is very useful for us.
Chris says
I found the easiest and fastest work around the “Sorry, that key does not appear to be valid” issue to reset your WordPress password using your cell phone.
1.) Just use your cell phone to access your password reset email that was sent to you.
2.) Click on the link in the email. The link will automatically open the site where you can input your new password.
3.) Follow the prompts to enter your new password.
4.) Save your new password
5.) You should now be able to access your WordPress website with your new password from any computer, business as usual.
I hope this helps everybody!