• Home

Logo

Navigation
  • Home
  • Articles
    • Content Writing
    • Design
    • General
    • Internet Marketing
    • Social Media
    • Tools and Tips
    • Usability
    • Web Hosting Articles
  • Tutorials
    • AJAX Tutorials
    • ASP Tutorials
    • C# Tutorials
    • CGI and Perl Tutorials
    • CSS Tutorials
    • Flash Tutorials
    • HTML Tutorials
    • Illustrator Tutorials
    • Java Tutorials
    • JavaScript Tutorials
    • Linux Tutorials
    • Miscellaneous Tutorials
    • MySQL Tutorials
    • Photoshop Tutorials
    • PHP Tutorials
    • Python Tutorials
    • Wireless Tutorials
    • WordPress Tutorials
    • XML Tutorials
  • Scripts
    • AJAX Scripts
    • ASP Scripts
    • ASP.NET Scripts
    • CGI & Perl Scripts
    • Flash Scripts
    • Java Scripts
    • JavaScript Scripts
    • PHP Scripts
    • Python Scripts
    • Remotely Hosted
    • Tools and Utilities
    • XML Scripts
  • Answers
  • Online Services
  • Tools

Hacking WordPress When You've Forgotten Your Password

By JonGos | on May 21, 2008 | 2 Comments
WordPress Tutorials
  • Tweet
  • Share
  • Tweet
  • Share

Do you have multiple WordPress self-hosted blogs? If so, you’ve likely run into a scenario where you just can’t remember your password. With WordPress 2.5 and 2.5.1 there’s an annoying bug that sometimes generates passwords that don’t work when you click the “Forgot Password” option. Usually that button generates a query that will send an email with a temporary password that allows you to reset your password to whatever you wish. The bug in 2.5 will still do that but when you click on the link that should allow you to reset your password, nothing happens.

Actually something does happen, WordPress resets the password internally (in the MySQL database) but the link that it sent you to activate that password fails to connect with the database effectively locking you out of your blog. In this scenario, at least for me, all the potentially viable solutions lead to dead ends.

Although it should’ve, launching the database manager to reset the password manually didn’t work. I tried doing this in various ways including this method from Codex, this one from Watching The Net and this one from Thought Outflux. But none of them worked!

Opening up wp-config.php and trying to reset the password there didn’t work there either.

I was at a loss as to what to do. That is until I found the Village Idiot Emergency Password Recovery software. Using it is simple:

  1. 1. Download the script from Village Idiot WordPress Emergency Password Script.
  2. 2. Unpack the downloaded zip file.
  3. 3. Upload the file emergency.php to the root of your WordPress installation (the same directory that contains wp-config.php).
  4. 4. In your browser, open http://example.com/emergency.php.
  5. 5. As instructed, enter the administrator username (usually admin) and the new password, then click Update Options. A message is displayed noting the changed password. An email is sent to the blog administrator with the changed password information.
  6. 6. Delete emergency.php from your server when you are done. Do not leave it on your server as someone else could use it to change your password.

For whatever reason this worked flawlessly where the other methods failed and I was able to regain access to my wordpress blog and set the password to something I’ll (hopefully) never forget again. I’m not ruling out operator error on the other methods but the aptly titled Village Idiot software makes the process fool-proof.

Note: Keep in mind that all of these options will only work if you are the site administrator or have direct access to the server at which the blog is hosted.

Share this story:
  • tweet

Tags: hackpasswordWordPress Tutorials

Author Description

2 Responses to “Hacking WordPress When You've Forgotten Your Password”

  1. September 4, 2008

    Sergiu FUNIERU Log in to Reply

    You can reset the admin’s password with your bare hands :)

    You just login as admin, using any WRONG password, then you reset the password, using the WordPress’ dashboard.

    Please see step-by-step instructions here:
    http://wp-docs.com/wordpress/level-5-modify-the-code/how-to-reset-the-wordpress-administrators-password/

  2. October 3, 2008

    Ido Fishman Log in to Reply

    you can also access to the database, browse through the users table and change the password for your user? (remember to change the encryption to MD5)

You must be logged in to post a comment.

Connect With Us

RSSSubscribe 1,239Followers 494Likes
  • Popular
  • Recent
  • Comments
  • Creating Energy Spheres in Photoshop

    Apr 15, 2008 - 96 Comments
  • Easy Screen Scraping in PHP with the Simple HTML DOM Library

    Aug 6, 2008 - 20 Comments
  • Calculating date difference more precisely in PHP

    Mar 7, 2008 - 13 Comments
  • When Does Hosting Your Website in the Cloud Make Sense?

    Oct 8, 2010 - 2 Comments
  • Fun with the Microsoft Managed Extensibility Framework Part 2

    Oct 6, 2010 - 0 Comment
  • Fun with the Microsoft Managed Extensibility Framework Part 1

    Sep 22, 2010 - 0 Comment
  • Website Management on the go with the iPad

    I appreciated your post, but I was looking for something I didn't...
    November 24, 2012 - drmoderator
  • Creating Energy Spheres in Photoshop

    I'm a little stuck down here especially at the step of creating the...
    November 23, 2012 - sarah
  • Running background processes in PHP

    Can you give an example? As see it, you can use this only when you...
    November 16, 2012 - Shaked Klein Orbach
Developer Resources
  • Tutorial Directory
  • Learn HTML
  • Learn PHP
  • Learn CSS
  • Learn AJAX
  • Learn JavaScript
  • Learn Pear
  • White Papers
  • Resources
    • NetVisits Web Directory
    • Realtor Pixels
    • Answers On The Run
    • Ask A Geek
  • Recent Posts

    • When Does Hosting Your Website in the Cloud Make Sense?
    • Fun with the Microsoft Managed Extensibility Framework Part 2
    • Fun with the Microsoft Managed Extensibility Framework Part 1
    • Website Management on the go with the iPad
    • Code Contracts in C# 4.0 – Part 1

    Calendar

    May 2013
    M T W T F S S
    « Oct    
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  

    Recent Comments

    • drmoderator on Website Management on the go with the iPad
    • sarah on Creating Energy Spheres in Photoshop
    • Shaked Klein Orbach on Running background processes in PHP
    • Thomas Cuvillier on How To Upload Files Using PHP
    • rizal aditya on Extracting text from Word Documents via PHP and COM
    • Home
    © 2003 - 2013 DeveloperTutorials.com. All Rights Reserved. Privacy Policy.