How to change WordPress password using phpMyAdmin

October 6, 2025 / WordPress

Protecting your WordPress account is important in preventing unwanted access to your website. Your password may occasionally be forgotten, or you may need to change it for security reasons. WordPress provides the usual reset options, but phpMyAdmin lets you change your password right in the database. Even if you are unable to log into the dashboard, you can still get back in with this fast and dependable way.

This tutorial offers concise, detailed instructions to help you safely change your WordPress password.

Why Use phpMyAdmin?

If you cannot access the WordPress dashboard, phpMyAdmin allows you to reset your password safely and quickly. It is a reliable method for administrators familiar with database management.

Change WordPress Password via phpMyAdmin

  1. Log in to cPanel.
  2. Search for ‘phpMyAdmin’ under ‘Databases’ and open it.
    database
  3. Choose the database linked to your WordPress site. If unsure, check ‘wp-config.php’ in your website root.
  4. Click on ‘wp_users’. This table contains all WordPress user accounts.
    Table
  5. Select the user whose password you want to change and click ‘Edit’.
    Edit
  6. Set a New Password:
    1. In ‘user_pass’, select MD5 from the function drop-down.
    2. Enter your new password.Password
    3. WordPress will automatically convert MD5 passwords to a more secure hashing method after login.
  7. Save Changes. Click ‘Go’ to save. Your password is now updated.

Security Tips

  • Use strong, unique passwords.
  • Limit database access to trusted users.
  • Regularly back up your WordPress database before changes.
  • Enable two-factor authentication for added security.

Conclusion

This way, changing your WordPress through phpMyAdmin is a quick and reliable solution when you cannot access your dashboard. By carefully following the steps outlined above, you can regain control of your account and ensure your website remains secure. Always remember to use strong passwords, restrict access to phpMyAdmin, and regularly review your site’s security settings to prevent unauthorised access in the future.

For a comprehensive guide on modifying your WordPress admin email, check out our detailed tutorial: How to Modify WordPress Admin Email through phpMyAdmin in cPanel

Spread the love