fbpx

Get the Official WPSaviour App Now!

BlogTutorials

How To Reset Your WordPress Password Using phpMyAdmin

One of the primary reasons why companies like LastPass thrive is that we humans aren’t designed to remember random combinations of alphanumeric characters – which are essentially strong passwords. What happens if you’ve setup a client’s WordPress site, customized the theme, installed the plugins, added the content – everything in one go and then go out for a beer – all the while, forgetting what password you set for the default user? Next morning, you’re finalizing the project and when you’re about to type the password, it dawns upon you – you have no freaking idea what it is!

In kill-me-now moments like these, there’s a quick healing potion. That’s what this post is all about.

I’m going to divide WordPress password recovery into two parts:

(a) recovering it using phpMyAdmin (if you’re on localhost using WAMP/XAMPP/MAMP)

(b) recovering the password using MySQL (if phpMyAdmin isn’t installed on your server. Part (b) will be present in the next post in this series.

Resetting Your WordPress Admin Password Using phpMyAdmin

First off, it’s launching phpMyAdmin that’s the tricky part. If you’re using WAMP or its variants, simply click on the icon on the taskbar and select phpMyAdmin as shown below:

phpMyAdmin from WAMP

If you’re on a shared hosting plan and have cPanel, login to cPanel and select phpMyAdmin found under Databases.

phpMyAdmin from cPanel

Once you’re inside phpMyAdmin, select the database that you’re using for your WordPress installation. In our tutorial, let us assume the database to be genesis_wp.

Select Database from phpMyAdmin 2

Look for a table entry called wp_users and select it. In most scenarios this should be the case. However, if you’re a security enthusiast, then you might have used a different prefix during the WordPress installation. The default prefix is wp_ hence the table entry wp_users. However, if your prefix was say ptbktwp_ then your user table entry would be ptbktwp_users.

The following two tables will help you understand:

Using the default prefix i.e. '_wp'

Using the default prefix i.e. ‘_wp’

Using a custom prefix: 'ptbktwp_'

Using a custom prefix: ‘ptbktwp_’

For simplicity, let us consider the default prefix – wp_users. Once the table is loaded, look for the username you had chosen while installing WordPress. In this tutorial I’m assuming it’s the default username – admin. Click on the little yellow pencil icon located next to the admin entry – that’s the edit icon.

Edit password under wp_users in phpMyAdmin

Look for the row named user_pass (usually the 3rd one) and make the following changes:

Reset WordPress Password in phpMyAdmin

  1. Under the Function field, set it to MD5.
  2. Under the Value field, enter your new password – let’s say mikerotch.
  3. Click on Save Changes.

Save Changes

Now you have successfully changed your WordPress password to mikerotch.

Settings changed

Related posts
BlogTutorials

Install WordPress On Ubuntu Locally With LAMP

BlogTutorials

Theme Customizer Boilerplate – Conditional Options, Child Themes and Plugins

BlogTutorials

WooCommerce Recently Viewed Products Shortcode Plugin

BlogTutorials

Make A WordPress Dashboard Widget Configurable

Sign up for our Newsletter and
stay informed