Reset WordPress Admin Password Tutorial

We will guide you on few quick and easy steps tutorial on how to reset the WordPress admin password for all the different types of scenarios

Updated on October 2, 2023
Reset WordPress Admin Password Tutorial

Typically this occurs when someone has forgotten their password, they don’t have access to their email for a standard password reset, or their WordPress isn’t sending emails correctly. In this article, we will guide you through a few quick and easy steps tutorial on how to reset the WordPress admin password for all the different types of scenarios you can encounter.

Understanding the Importance of a Secure Password:

Securing your WordPress site is paramount, and it all starts with a robust admin password. It should be a unique combination of letters, numbers, and symbols, ensuring the highest level of security against potential breaches. Regularly updating your password is also a recommended best practice.

Access To Email: Reset WordPress Admin Password

Firstly, to reset the WordPress password is via the standard login page. This assumes you have access to your email.

  1. Browse to your WordPress login page, typically this is located at /wp-admin, such as domain.com/wp-admin. Then click on the “Lost your password?” link at the bottom.
  2. On the next screen, enter the username or email address of your WordPress administrator account. Click on “Get New Password,” and you will receive a link to create a new password via email.

Reset WordPress Admin Password Via phpMyAdmin: When You Do Not Have Access To Email

Secondly, as an alternative to using the WordPress Toolkit tool in your cPanel to reset the WordPress password. You can reset the password for the desired user by changing it directly in the application’s database.

So, to do this, go to your cPanel and click on the phpMyAdmin icon in the Databases section. Next, locate your WordPress database from the list on the left. However, If you’re not sure which one it is, you can check the wp-config.php file in the root folder of your WordPress installation for the line below:

define(‘DB_NAME’, ‘user_wp743’);

SQL Usage to Reset WordPress Password

Next, click on the SQL link in the top menu to reset the WordPress admin password. On the new page that opens. you need to enter the following MySQL query inside the text field in the page:

UPDATE `wp_users` SET `user_pass` = MD5(‘NEWPASSWORD’) WHERE `wp_users`.`user_login` = “admin_username”;

As a result, in the above query replace wp_ with the actual table prefix for your WordPress, NEWPASSWORD with the desired password, and admin_username with the actual WordPress username. Once you do that, click on the Go button in the bottom right part of the screen to execute the query.

Finally, you can now login with your new password. In conclusion, If you want to change your WordPress admin username too. You can follow the instructions in our tutorial on how to change your WordPress username.

Through WP-CLI:

For those comfortable with command-line interfaces, WP-CLI is a powerful and efficient solution:

Step 1: Access your server through SSH.

Step 2: Navigate to your WordPress root directory.

Part 3: Run the following command: wp user update username –user_pass=newpassword

(Replace ‘username’ with your admin username and ‘newpassword’ with your new password.). We will guide you on few quick and easy steps tutorial on how to reset the WordPress admin password for all the different types of scenarios.

Best Practices:

  1. Regularly Update Passwords: Regularly changing your password minimizes the risks of unauthorized access.
  2. Use Strong Passwords: Incorporate a mix of uppercase, lowercase, numbers, and symbols to strengthen your password.
  3. Enable Two-Factor Authentication: This adds an extra layer of security to your WordPress login.
  4. Backup Regularly: Regular backups of your WordPress site can be a lifesaver in case of any discrepancies or data losses.

Cybersecurity Measures:

  1. Limit Login Attempts: Implementing restrictions on login attempts can shield your website from brute force attacks.
  2. Install a Security Plugin: Numerous WordPress plugins can enhance your site’s security by offering features like firewalls and malware scanning.
  3. Regularly Update Themes and Plugins: Keeping your themes and plugins updated ensures that you are protected against vulnerabilities that could be exploited.

Conclusion:

The necessity for a secure, well-managed WordPress site is more significant than ever in today’s digital age. Knowing how to reset your WordPress admin password is crucial, whether you’re a seasoned developer or a WordPress newbie. By following this guide and adopting best practices, you can ensure your site remains secure and accessible.