How to reset your WordPress password

By Angus Published 21 October 2024 Updated 26 February 2026 4 min read

Losing access to your WordPress admin area prevents you from managing content, installing plugins or updating your site. You need to reset your password to regain control of your account.

You can reset your WordPress password through the login page if you have access to your admin email address. If that method fails, you can change the password directly in your database using phpMyAdmin.

Before you begin

  • You need access to the email address associated with your WordPress admin account for the first method.
  • You need cPanel access for the phpMyAdmin method.
  • Your WordPress login URL is usually yourdomain.co.uk/wp-admin but may differ depending on your configuration.

Reset via the WordPress login page

WordPress sends a password reset link to your admin email address. This method works when you have access to that email account and remember your username.

  1. Navigate to your WordPress login page.
    Enter your WordPress login URL in your browser’s address bar. This is typically yourdomain.co.uk/wp-admin, replacing yourdomain.co.uk with your actual domain name.
  2. Click the password reset link.
    Below the login form, click Lost your password? to start the reset process.
WordPress login page showing the Lost your password link below the login form
The password reset link on the WordPress login page.
  1. Enter your username or email address.
    Type your WordPress admin username or the email address associated with your account, then click Get New Password. If you see an error message, try a different username or email address, or use the phpMyAdmin method below.
WordPress password reset form with username or email field and Get New Password button
Enter your username or email to request a password reset.
  1. Check your email for the reset link.
    Open the email account associated with your WordPress admin user. You should receive an email from your WordPress site containing a password reset link.
WordPress password reset email showing the reset link
The password reset email from WordPress.
  1. Set your new password.
    Click the link in the email and enter your new password. Store this password securely. You can now log in to your WordPress admin area with your new credentials.

Change your password with phpMyAdmin

This method changes your password directly in the WordPress database. Use this when you cannot access your admin email or the password reset link fails.

  1. Log in to cPanel and open File Manager.
    Access your hosting control panel and click the File Manager icon in the Files section. This opens the file browser for your hosting account.
cPanel dashboard showing the File Manager icon in the Files section
The File Manager icon in cPanel.
  1. Locate and view your wp-config.php file.
    Navigate to your WordPress installation directory (usually public_html). Right-click on wp-config.php and select View. This displays the file contents without allowing edits.
File Manager context menu showing the View option for wp-config.php
Right-click wp-config.php and select View.
  1. Note your database name.
    Find the line that reads define('DB_NAME', 'database_name'); and write down the database name shown between the quotes. You will need this to locate your WordPress database in phpMyAdmin.
wp-config.php file showing the DB_NAME configuration line
The database name in wp-config.php.
  1. Open phpMyAdmin.
    Return to your cPanel home page and click the phpMyAdmin icon in the Databases section. This opens the database management interface.
cPanel dashboard showing the phpMyAdmin icon in the Databases section
The phpMyAdmin icon in cPanel.
  1. Select your WordPress database.
    In the left sidebar, click on the database name you noted earlier. This displays all tables in your WordPress database.
phpMyAdmin interface showing the WordPress database in the left sidebar
Select your WordPress database from the sidebar.
  1. Open the users table.
    Find and click the table ending in _users (typically wp_users). This table stores all WordPress user accounts and their passwords.
phpMyAdmin showing the WordPress users table in the database table list
The WordPress users table in phpMyAdmin.
  1. Edit the admin user.
    Locate your admin username in the list and click the Edit button (pencil icon) in that row. This opens the user record for editing.
phpMyAdmin users table showing the Edit button next to the admin user
Click Edit next to your admin username.
  1. Set your new password.
    Find the user_pass row. In the Function dropdown, select MD5. In the Value field, enter your new password. MD5 hashing encrypts your password before storing it in the database.
phpMyAdmin edit form showing MD5 selected in the Function dropdown and a new password in the Value field
Select MD5 and enter your new password.
  1. Save your changes.
    Scroll to the bottom of the page and click Go. This updates the database with your new password. You can now log in to WordPress using your new credentials.
phpMyAdmin edit form showing the Go button at the bottom of the page
Click Go to save your password change.

Wrapping up

You have reset your WordPress password and regained access to your admin area. The login page method works when you have access to your admin email, while the phpMyAdmin method changes the password directly in your database when other options fail.

Store your new password securely using a password manager. Review our guide on WordPress security best practices to protect your site from unauthorised access. Our managed WordPress hosting includes automatic security updates and daily backups.

If you run into any trouble, get in touch and our team will be happy to help.

Running a WordPress site?

Get fast, secure and reliable WordPress Hosting with optimised for performance with AccelerateWP.

Get WordPress Hosting

Need multiple accounts?

Create fully isolated individual accounts for your clients and manage them all from one dashboard.

Get Reseller Hosting