How To Easily Reset Your WordPress Password via phpMyAdmin

I know that it is easy to forget your password, especially when it contains plenty of symbols, digits and upper/lower case. In WordPress, if you have forgotten your password, you can get it to reset your password via your email account. However, in the event that you also forget your username or the email you have used to open the WordPress account (I know this type of situation is rare, but it does happen), you can always reset your password via the phpMyAdmin.

This tutorial is applicable only if your Web host is using phpMyAdmin to manage your database.

Log into your Web host account and go into the phpMyAdmin admin page.

Search for the database that you have configured for the WordPress account.

phpmyadmin-home

If you have no idea what is the name of your WordPress database (probably because you used the auto installation script in cPanel) or forgotten the database name, download the “wp-config.php” file from the WordPress server (using SFTP). You should find your database information there.

On the left side of the phpMyAdmin screen, you should see a list of the table used in WordPress. Scroll down until you see the entry “wp_users”. If you are using a different table prefix other than “wp_”, you should see something like “yourprefix_users”

phpmyadmin_users

On the right, click on the Browse button. This will get it to display all the user information. The “userpass” column is the password field. Note that it is of an unrecognizable format, definitely not the same as the one that you have set for your WordPress. Don’t worry, this is the exact same password that you have set, except that it is encrypted with MD5 Hash.

wp-users-pwd

Now, open a new tab in your browser and head on to MD5 hasher. Enter your password and and click OK to create a md5 hash of that password. Copy the hashed string to your clipboard.

md5hash

Back to your phpMyAdmin, check the box beside your username and click on the pencil icon to edit the entry.

wp_usrs_edit

Replace the password with your newly generated md5hash password.

change-passwd

Click on “Go” to save the changes.

That’s it. You should be able to log in with the new password now.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Damien Oh Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe