Losing access to your WordPress admin password and getting locked out of the admin dashboard can be a frustrating experience.
Don’t worry! Whether you prefer using the WordPress login screen, WP-CLI, or phpMyAdmin to work directly with the database, we’ve got you covered.
This guide will walk you through the easiest methods for resetting your WordPress admin password in RunCloud, so you can regain control of your site in no time.
Method 1: Resetting the password through the WordPress login screen
1. Go to yourdomain.com/wp-login.php and click on “Lost your password?”
2. Input the WordPress username or email address and click the “Get New Password” button.
3. Check your Email (including the spam folder) for instructions for password reset.
4. Click the password reset link, set a new password, and login to your dashboard.
Method 2: Resetting your password using the WP CLI
- Access your server via SSH as the web application owner/system user.
- Navigate to the public path of your WordPress web application.
cd /path/to/your/wordpress
Example:
cd /home/runcloud/webapps/mywordpress
- Obtain the ID of your WordPress user using the following command.
wp user list
- You can use the following command to reset the admin password (replace the number with ID number of your user and “newpassword” with the desired password).
wp user update 1 –user_pass=”newpassword”
- Please make sure the command returns a success message:
Success: Updated user 1.
You can now log in with the new password.
Method 3. Using PHPMyAdmin
- Please go to the phpmyadmin login screen and log in with your database username and password. (You can find the credentials in your wp-config.php file).
- Find the “wp_users” table and click on it.
- Locate your WordPress user and click the corresponding “Edit” button.
- Please be aware that you can’t paste the password in plain text.
Select the “MD5” function from the dropdown in the “user_pass” field. Then, enter your new password in the “Value” field. - Click the “Go” button in order to save the new password.
We hope this guide has helped you reset your WordPress admin password with ease. If you run into any issues or need further assistance with resetting your WordPress passwords, feel free to reach out. Our support services are available round the clock to ensure a smooth resolution to any of your WordPress issues.

