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.

Enter the email address or username for which you want to reset the password and click Get New 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.

On the new page, click Installations.

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

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.

At the bottom of the page, press the 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.

define( ‘DB_NAME’, ‘cpaneluser_databasename’ ); – cpaneluser_databasename is the database you need.)

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_).

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.

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.