View Categories

How to reset the admin password in WordPress

In this article, we present three different ways to change your WordPress password if you have forgotten it. You can also learn how to change the email address associated with the admin account.

Reset WordPress Password via the Lost Your Password? Link

Go to www.your-domain.com/wp-admin (replace www.your-domain.com with the domain name for which you want to reset the password).
Under the login form, click on the Lost your password? link.

Reset WordPress admin password

Enter the email address or username for which you want to reset the password and click Get New Password.

Enter email address to reset WordPress admin password

Reset WordPress Password Using Softaculous

This password reset method is valid only if you installed WordPress using Softaculous in cPanel.

Access cPanel at www.your-domain.com/cPanel and in the Software section, click the Softaculous Apps Installer button.

Click Softaculous Apps Installer in cPanel

On the new page, click Installations.

Click Installations button

Click the Pencil icon next to the WordPress installation you want to edit.

View list of installed WordPress and edit settings

On the new page, enter your desired new username in Admin Username. Enter the new desired password in Admin Password, and enter the username you want to use to log in at Sign on Username.

New settings for WordPress

At the bottom of the page, press the Save Installation Details button.

Click Save Installation Details button

Reset WordPress Password Using phpMyAdmin

Access cPanel at www.your-domain.com/cPanel and in the Databases section, click the phpMyAdmin button.

Click phpMyAdmin button in cPanel
On the right side of the newly opened page, click on the database name. (If you have multiple databases, you can find out the one used by downloading the wp-config.php file from your WordPress installation folder – usually public_html. Open wp-config.php with a text editor and look for the line
define( ‘DB_NAME’, ‘cpaneluser_databasename’ ); – cpaneluser_databasename is the database you need.)
Click database name in phpMyAdmin

After clicking the database name, all tables will be displayed on the right. Click the Browse button next to the table something_users (the prefix varies per WordPress installation; in the example image below the prefix is wpsi_).

Click Browse button next to users table

After opening the table, click on the email address in the user_email field. An editable field will appear where you can change the email address. Click anywhere on the page to disable editing and you can close the web page.

Edit admin account email in WordPress via phpMyAdmin

Now you can request a password reset as described at the beginning of this page under Reset WordPress Password via the Lost Your Password? Link.