We all forget passwords every now and then; WordPress passwords are no different. There are various different methods of changing your WordPress password.
Let’s go through the easy and simple ones and if for some reason these are no longer viable (if the email address you used was invalid or no longer accessible) we’ll talk about how to change it through cPanel and MySQL.
Doing it yourself
So all of a sudden you find yourself on the login page wondering what your username or password was. There’s only so much one can do but luckily WordPress allows some amazing methods of changing your password.
Simply go to the login page for your website and click the “Lost your password?” button under the login box.
Fill in your username or the email address you used to sign up with.
You should receive an email within a few seconds with instructions on how to change your password; simply select a new password and you’re done!
Get help from an admin!
As already discussed in our previous guide about “How to manage WordPress users“, admins have the power to change any users’ password.
Simply go to the dashboard, click the users button or the “All Users” button on the side menu that opens up.
Hover over the user you want to edit and click “Edit”
Scroll down till you see the option to edit the user’s password. Give the new password to the user.
But what if YOU are the admin?
Well if you’re an admin and the following conditions are true, you’re going to have to go through a couple of complicated steps to change your password. These conditions are:
- You no longer remember your password.
- You don’t have access to the email address or you don’t remember it.
- You’re the super-admin on the website. There’s no user who can change your password.
If the answer’s yes to all of these then you’ll need access to your web server’s control panel, which you should have, considering you’re the admin. Simply go to your website’s control panel and look for cPanel, many hosting companies provide the standard cPanel to their users, do read our reviews on GoDaddy and Bluehost to see some of the other features these companies provide.
After accessing the cPanel; look for phpMyAdmin to access your WordPress database. A typical WordPress database on MySQL looks something like this if you didn’t change any settings while installing.
Open the table “wp_users” assuming you did not change the table name during installation of the framework. The first thing you’ll notice is that the password is encrypted. It’s written in an MD5 Hash. Simply open an md5 Hash generator online, one can be found here.
Type your password and copy the hash that’s generated underneath.
Now go back to phpMyAdmin and click the edit button next to the row of the user you want to edit.
You’ll find yourself on this page, simply paste the key into the user_pass field and you’ve successfully changed your password to the corresponding text for that key.
Click the Go button and everything should be updated, you can also change the email address of the corresponding account from this page.
Changing your user_pass value to: 03bfc8d208d027f0160ea8d331fe6cae
Will change your password to: “My New Password” (without the quotation marks)
If you have knowledge of PHP and MySQL you should be able to edit the password without needing the phpMyAdmin at all. Making sure if your hosting service is providing you with phpMyAdmin or not is very important, do read some of our other reviews on JustHost and DreamHost to make sure you’re getting everything you require to manage your website.