The WordPress admin password is the password that you use to log in to your WordPress dashboard and manage your website.

It is essential to keep your WordPress admin password secure, and change it periodically to prevent unauthorized access to your website.

Method 1: Through the WordPress Dashboard

The easiest way to change your WordPress admin password is through the WordPress dashboard, as long as you have access to it. If you are using the RunCloud Hub Plugin, you can use the “Magic Login” functionality to log in to your dashboard.

To reset your password, follow these steps:

  1. Log in to your WordPress dashboard using your current username and password.
  2. Go to Users > All Users and find the user that you want to change the password for. You can use the search box or the filters to locate the user.
  3. Hover over the user and click on Edit. This will take you to the user profile page.
  4. Scroll down to the Account Management section and click on Set New Password. This will create a new strong password for you. You can also type your own password in the box, but make sure it’s secure and hard to guess.
  5. Click on Update Profile at the bottom of the page to save your changes.

That’s it! You have successfully changed your WordPress admin password through the dashboard. You can now log out and log in again using your new password.

Method 2: Through the Login Screen

Another way to change your WordPress admin password is through the login screen, as long as you have access to the email address that is associated with your user account. To do this, follow these steps:

  1. Go to your WordPress login page, which is usually located at /wp-login.php.
  2. Click on the Lost your password? link below the login form. This will take you to a page where you can enter your username or email address.
  3. Enter your username or email address that you use for logging into WordPress and click on Get New Password. This will send an email to your registered email address with a link to reset your password.
  4. Check your email inbox and look for an email from WordPress with the subject “[Your Site Name] Password Reset”. If you don’t see it, check your spam or junk folder as well.
  5. Open the email and click on the link that says “To reset your password, visit the following address”. This will take you to a page where you can enter a new password for your user account.
  6. Enter a new strong password twice, and click on Reset Password. This will update your password and log you in to WordPress.

That’s it! You have successfully changed your WordPress admin password through the login screen. You can now log in using your new password.

Method 3: Through WP CLI

WP-CLI is a powerful tool that allows you to manage your WordPress installation from the command line.

  1. Log in to Your RunCloud Server via SSH, if you aren’t sure how to do this, you can read out post on configuring SSH on RunCloud.
  2. The next step is to navigate to the WordPress root directory, which is where your WordPress files are located. To do this, you can use the cd <path> command. You can find the root path of your WordPress installation in your RunCloud dashboard.
  3. Next, you will need to list all WordPress users, so that you can find the ID of the user that you want to change the password for. To do this, you can use the following command:
wp user list

This will display a table with the ID, user_login, display_name, user_email, and user_registered columns for each user. Note down the ID of the user that you want to change the password for.

  1. The final step is to update WordPress user password using WP-CLI. Suppose you want to change the password for user with ID 5 and set it to abcd00000000. To do this, you can use the following command:
wp user update 5 --user_pass="abcd00000000"

Replace 5 with the ID of the user that you want to change the password for, and replace abcd00000000 with a new strong password that you want to use.

Make sure that your password is secure and hard to guess. This will update the user password in the database and display a success message.

That’s it! You have successfully changed the WordPress admin password using WP-CLI. You can now log in to your WordPress dashboard using your new password.

Method 4: Through the phpMyAdmin Database

Another way to change your WordPress admin password is through the database, as long as you have access to it. To do this, follow these steps:

Step 1: Install phpMyAdmin

Log in to your RunCloud dashboard and select the server where your WordPress site is hosted. Click on “Deploy new Application” and select phpMyAdmin.

You can use the default settings and configure the test domain provided by RunCloud for this.

Step 2: Obtain WordPress Database Credentials

Go back to your RunCloud dashboard and select your WordPress application. Click on the “File Manager” tab in the left menu and then select “wp-config.php” to open the file in a text editor.

In the wp-config.php file, scroll down to find the DB_USER and DB_PASSWORD constants and note down their values.

Warning: Do not edit the wp-config.php file, changing the password here will not update your WordPress password.

In the above example, the value of DB_USER variable is appFrami_1689776508 and the value of DB_PASSWORD variable is fHnsKs0tPkqcdanhzeSKXwetYEqQ5DHke5nq6kRGoCAIAKdG9RNTG. This is your username and password that will be used to log in to phpMyAdmin instance.

Step 3: Log in to phpMyAdmin

Go to the login page of the web application that we created in the Install phpMyAdmin step then enter the username and password that we obtained in the previous step.

Step 4: Update the Password

In the dashboard, you will get complete access to your WordPress database. Click on the name of the application in the left section of the dashboard to select the database, and then click on the wp_users button (the prefix wp_ may vary depending on your configuration) to open the users table.

In the users table, By default you will see the first 25 users of your website. You can adjust the Number of rows setting to view more users if your user isn’t displayed on the first page. Look for the user that you want to change the password for and click on Edit next to it. This will open a form where you can edit the user details.

On the next screen, look for a field that has a name like ‘user_pass’ (the prefix user_ may vary depending on your configuration) and enter a new password for your user account. However, you cannot enter any plain text password here. You need to enter an MD5 hash of your password, which is a scrambled version of it that WordPress can understand.

To generate an MD5 hash of your password, click on the Functions drop-down next to the password and select MD5.

Finally, scroll down to the bottom of the screen and click on Go. This will update your password in the database. You will be redirected back to the users page and you will see a success message at the top with your new password.

That’s it! You have successfully changed your WordPress admin password through the database. You can now log in using your new password.