Getting locked out of your own WordPress dashboard feels alarming, but the website itself almost always stays online and visible to visitors throughout the entire ordeal. Losing admin access only affects your ability to log in and make changes, not whether the public site continues functioning.
Most lockouts trace back to one of a small number of common causes, each with a specific, reliable fix. Here is how to work through them in the right order.
Start With the Standard Password Reset
Before trying anything more complicated, attempt the built-in password reset first. On the WordPress login page, click “Lost your password?”, enter the username or email associated with the admin account, and check the inbox for a reset link.
If the email arrives and the link works, this resolves the vast majority of simple lockouts within a couple of minutes, with no further troubleshooting needed.
If the Reset Email Never Arrives
A common complication is that the password reset email simply never shows up, often because the website’s email sending function is not configured correctly rather than any issue with the actual account. This is a frequent and specifically diagnosable WordPress issue, unrelated to the account itself being locked or broken.
If this happens, the next step is resetting the password directly through the website’s database, using a tool called phpMyAdmin, typically accessible through your hosting control panel.
Resetting a Password Through phpMyAdmin
- Log in to your hosting control panel and open phpMyAdmin.
- Locate your WordPress database and open the table named wp_users, or a similar name if a custom database prefix was used during installation.
- Find the row corresponding to the admin account you are locked out of, and click to edit it.
- In the user_pass field, clear the existing value and enter a new password in plain text.
- In the dropdown menu next to that field, select MD5 as the function before saving. WordPress will automatically convert this into its proper secure format upon the next successful login.
- Also check the user_activation_key field for that same row, and clear it if it contains any value, since a leftover activation key can silently block login even after a successful password change.
- Save the changes and attempt to log in with the new password.
This method works even when the standard password reset flow has completely failed, since it bypasses the email delivery step entirely.
When a Security Plugin Is the Cause
Security plugins such as Wordfence or similar login protection tools sometimes lock out a legitimate admin after several failed login attempts, treating repeated failed attempts as a potential attack rather than a genuine forgotten password.
If this is the suspected cause, connect to the website’s files through FTP or your hosting file manager, navigate to the plugins folder, and temporarily rename the specific security plugin’s folder. This deactivates the plugin without needing dashboard access, since WordPress cannot load a plugin folder it cannot recognize by its expected name. Once inside the dashboard again, review and adjust the plugin’s lockout settings before reactivating it properly.
When You Have Lost Administrator Privileges Entirely
If login succeeds but the account no longer has administrator-level access, or the account was deleted entirely, a new administrator account can be created directly through phpMyAdmin by adding a new row to the wp_users table along with corresponding administrator role entries in the wp_usermeta table.
This is a more advanced fix that benefits from careful, exact execution, since mistakes in this specific table can cause additional issues if not done correctly.
Preventing Future Lockouts
Once access is restored, a few simple habits significantly reduce the odds of a repeat lockout. Store login credentials in a password manager, keep the admin account’s associated email address current and actively monitored, and confirm that outgoing email from the website actually works reliably, since a failed email system silently disables one of the primary recovery methods.
Keeping regular backups also means that even a severe lockout scenario has a reliable fallback, restoring to a known working state if all else fails.
Getting Support When Self-Recovery Feels Too Risky
Some lockout scenarios, particularly ones involving direct database editing, carry a real risk of making the situation worse if a step is done incorrectly. For business owners uncomfortable working directly inside a database, professional support removes that risk entirely.
HoganHost’s web hosting support team can assist with WordPress recovery issues, including admin lockouts, helping restore access safely without the trial-and-error risk of a first attempt at direct database editing.
A WordPress lockout feels urgent, but it is one of the more reliably fixable technical problems a website owner can face, provided the right method is matched to the actual underlying cause.


