How to reset WordPress admin password from cPanel

How to change WordPress users password – PhpMyAdmin?

There are many ways to reset the WordPress admin password. We can reset the WordPress admin password from WordPress admin panel as well as cPanel-PHPMyAdmin. We all know how to reset the wp-admin password from the WordPress Dashboard. It is time that every WordPress blogger knew how to reset the WordPress admin password from PHPMyAdmin.

WordPress is one of the most popular and widely used content management system. Because of its popularity and ease of use it’s always being exposed to several security vulnerabilities or hacks. In case if a WordPress website is hacked, we may not be able to enter the wp-admin panel. Also, when we are upgrading a new theme or plugin for our WordPress website, then our website and admin panel may gets Internal error. In all this cases it’s very important to know how we can reset the wp-admin password from PHPMyAdmin.

Here I am explaining how you can change the wp-admin password from PHPMyAdmin.

1. Obviously you should log into cPanel with your username and password. Then, select PHPMyAdmin from “Databases” tab.

cPanel > Databases > PHPMyAdmin


2. Identify the database

We can identify the database that you are using for your WordPress website, from wp-config.php file. In that file, you can see the following entries which defines your Database name, Database user, Database password and Database host.

A sample wp-config file which lists the database details is shown below:

/** The name of the database for WordPress */
define('DB_NAME', 'crybit_wordp1');

/** MySQL database username */
define('DB_USER', 'crybit_wordp1');

/** MySQL database password */
define('DB_PASSWORD', 'password_of_the_database');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Database name format in a cPanel server is “cpanelusername_name of db”. The database name in this example is “crybit_wordp1“.

Now, in the PHPMyAdmin you can see your databases listed in left side. Select and click on the database name that you see in the wp-config.php file. Then, you will see a list of tables that starts with “wp_” for most of the part.

***If you have changed the prefix in the installation time, then you need to search for the specific prefix. For example: “wpmy_

3. Identify the table

Then, we need to search for the table wp_users and click on the database table. It will lists the WordPress users. Click on the Edit icon of the user admin if you need to change the password for the admin user.


Now, you will see a window which looks like this:


There, you need to edit the user_pass field to change the password. WordPress stores password in MD5 encrypted form. You are not allowed to store a plain text password. For that you need to select MD5 from the drop-down next in the function field. In the value field, enter your password in plain text format.


This means, you are converting your plain text password to MD5 encrypted format. Then, click Go to save the changes.

Similarly we can change all WordPress users passwords!

That’s it!!!


1, How to find the WordPress version from command line
2, Top 10 WordPress themes for web hosting companies
3, 10+ WordPress Web-hosting themes and templates – Demo and download

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

1 Response

  1. adeem jan says:

    great tutorial!
    This is an useful guide, and I love screenshots for explaining the process.
    The most common reason to change username is for “admin”, I guess???
    Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *