Go to your WordPress login page, click 'Lost your password?' and enter your username or email address to receive a reset link. If the email never arrives, open phpMyAdmin in cPanel and select the database named in wp-config.php. In the users table, edit your admin user and type a new password in the user_pass row. Set its Function dropdown to MD5 before clicking Go.
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.
yourdomain.co.uk/wp-admin but may differ depending on your configuration.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.
yourdomain.co.uk/wp-admin, replacing yourdomain.co.uk with your actual domain name.


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.

public_html). Right-click on wp-config.php and select View. This displays the file contents without allowing edits.
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.


_users (typically wp_users). This table stores all WordPress user accounts and their passwords.

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.

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. 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.
Tuned for WordPress, with one-click installs.
From £5.99/mo
View WordPress HostingDid this guide solve your problem?
Our UK support team answers tickets and live chat every day. Send us the guide you were following and where it stopped working.
Related guides
Get fast, secure and reliable WordPress Hosting with optimised for performance with AccelerateWP.
Get WordPress HostingCreate fully isolated individual accounts for your clients and manage them all from one dashboard.
Get Reseller Hosting