A2oz

How to Reset WordPress Password from Server

Published in WordPress 2 mins read

You can reset your WordPress password from the server using the following methods:

1. Using phpMyAdmin

  • Access your database: Log in to your web hosting control panel (cPanel or similar) and find the phpMyAdmin tool.
  • Locate the wp_users table: Open the database that contains your WordPress installation and find the wp_users table.
  • Edit the user record: Click on the wp_users table, and select the row corresponding to your user account.
  • Change the password: Find the user_pass column, click on the "Edit" button, and replace the current password with a new one.
  • Save the changes: Save the changes you made to the database.

2. Using the WordPress Password Reset Plugin

  • Install the plugin: Install and activate a WordPress password reset plugin like "Lost Password Form" or "WP User Manager."
  • Access the plugin settings: After activation, navigate to the plugin's settings page.
  • Generate a new password: The plugin will provide an option to generate a new password for your account.
  • Reset your password: Copy the generated password, and use it to log in to your WordPress dashboard.

3. Using the wp-config.php File

  • Access the wp-config.php file: Log in to your server via FTP or SSH and locate the wp-config.php file within your WordPress installation directory.
  • Edit the file: Edit the wp-config.php file using a text editor.
  • Define the new password: Add the following line to the file, replacing new_password with your desired password:
define( 'WP_PASSWORD', 'new_password' );
  • Save the changes: Save the changes to the wp-config.php file.
  • Remove the line: Once you have logged in with the new password, remove the line you added to the wp-config.php file to prevent security vulnerabilities.

Important Note: Ensure you back up your WordPress installation before making any changes to the database or files.

Related Articles