The admin password of WordPress can be changed in multiple ways without knowing the password.
Change Password Using Softaculous
Follow these instructions to change the WP admin password from Softaculous:
- Go to cPanel > WordPress Manager By Softaclous.
- Click "Manage Users" next to your website.
- Select [admin] under the "Username" dropdown.
- Generate a new password:
Click the key icon below the "Password" field to generate a new password.
Click "Show" to display the new password.
Copy and store the password in a safe place. - Click "Save".
- Done! Use the new password to log in the next time.
Change Password Using WP Toolkit
- Go to cPanel > WP Toolkit.
Expand the Website. - Click "Setup" (below the thumbnail, next to Login).
- Click "Generate" to generate a new password.
Click the eye icon to display the new password.
Copy and store the password in a safe place. - Click "Change".
- Done!
Note:
If you do not have email configured, you might get the following error:
Unable to update site administrator settings: Fatal error: Uncaught Error: Call to undefined function PHPMailer\PHPMailer\mail() in /home/username/public_html/wp-includes/PHPMailer/PHPMailer.php:881
In that case, you cannot auto-login to WP Admin from WP Toolkit. To log into WordPress, visit the login URL, and enter your username and the new password.
Then, to fix the WP Toolkit error, configure SMTP in WordPress and change the password again.
Change Password Using phpMyAdmin
- Go to cPanel > phpMyAdmin.
Or, DirectAdmin > User > Extra Features > phpMyAdmin. - Click the database on the left.
You can find the database name in the [wp-config.php] file in your WordPress install directory:define( 'DB_NAME', 'databasename' );
- Click the "wp_users" table.
Your table name might be different, e.g., "XX_users". - Click "Edit" located to the left of the admin username.
- Enter a password in the text box next to "user_pass".
- Select "MD5" from the dropdown next to "user_pass".
- Click "Go".
- Done!
Auto Login to WP Dashboard and Change Password
You can auto-login to the WordPress admin dashboard using Softaculous from your cPanel home:
- Go to cPanel > WordPress Manager By Softaclous. > "Login" (next to the website).
- Click "Howdy, admin" from the top right of the WordPress dashboard.
- Click "Set New Password" near the bottom of the page.
- Click "Update Profile".
- Done! Use the new password to log in the next time.