Cloud Service >> Knowledgebase >> WordPress >> Resetting WordPress Admin Password
submit query

Cut Hosting Costs! Submit Query Today!

Resetting WordPress Admin Password

Have you forgotten your WordPress admin password? No worries! There are various ways to reset it. 

In this knowledge base post, we will see how to recover lost passwords for WordPress admin (wp-admin).

So, let’s get started!

1. Password Reset via Email

The most frequent way to reset your WordPress admin password is to click the Lost your password

Take these steps:

  • Go to your WordPress login page

  • Click the "Lost your password?"

  • Enter your WordPress login or the email address linked to your admin account.

  • Click the "Get New Password" button.

  • Password reset link sent to your inbox.

  • Follow the link to create a new password.

2. Resetting Password via phpMyAdmin

You may reset the password straight from the WordPress database using phpMyAdmin. 

Here's how:

  • Log in to your hosting control panel

  • Select the WordPress database from the list

  • Locate the "wp_users" table and click on it to open.

  • Find your admin user account in the table and click on the "Edit" button 

  • Enter your new password.

  • Finally, save the changes.

3. Resetting Password via FTP

Still not resolved? You may reset the admin password by editing the functions.php.

Here's how:

  • Connect your website to your computer.

  • Switch to the "wp-content/themes/your-active-theme.”

  • Save the "functions.php" file.

  • Open the "functions.php" file in Notepad++.

  • Append the below code at the end of the document.

wp_set_password('new_password', 1);

Replace 'new_password' with your desired password.

  • Save the changes and upload the modified "functions.php" file back to your server.

4. Using Emergency Password Reset Script

WordPress provides an emergency password reset script. 

Here's how:

  • Download the emergency password reset script from the official WordPress website

  • Upload the script to your WordPress root directory using FTP.

  • Access the script via your web browser.

  • Follow the instructions to reset your admin password.

Prevention Tips

To avoid future password-related issues, consider implementing the following best practices:

  • Use a strong and unique password.

  • Update your WordPress installation, themes, and plugins.

  • Enable two-factor authentication.

  • Limit the number of login attempts.

  • Keep your email address associated with your admin account up-to-date.

That’s It

Forgetting your WordPress admin password is not threatening. Follow our step-by-step guide to reset your admin password. For more information-get in touch with our WordPress hosting team.

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!