Storming Solutions

Digital Hub / Web Development

Locked Out of WordPress Admin: Recovery Steps

Updated 18 November 2026

Jump to section

You get back into WordPress by resetting your password from the "Lost your password?" link. If email is down, you reset it directly in the database, or deactivate the plugin that locked you out. The right path depends on why you are out: a forgotten password, a plugin or theme that broke the login, or a lost admin account. Work from the simplest fix to the most technical.

Why am I locked out of WordPress?

You are locked out for one of three reasons, and naming yours points straight at the fix. Guessing the password again is rarely the answer.

The first is a simple forgotten or changed password. The second is a plugin or theme, often just updated, that broke the login screen or the dashboard. The third is a missing or downgraded admin account, sometimes left behind when a previous person handed the site over.

Each has its own door back in. A forgotten password resets by email or database; a broken plugin is switched off at the file level; a lost account is rebuilt in the database.

Why you are locked out The door back in
Forgotten or changed password Reset by email, or in the database
A plugin or theme broke the login Deactivate it over SFTP
Admin account lost or downgraded Rebuild it in the database

Reset your password by email

The quickest way back in is the "Lost your password?" link on the login screen. WordPress emails you a link to set a new one, and when a forgotten password is the only problem, that is the whole fix.

The official guide confirms the "Lost your password?" link on the main login page (WordPress.org, updated March 2026) is normally the easiest reset. Enter your username or the email on file, and a reset link arrives in your inbox.

This works only if two things are true. You still have access to that email account, and the site can actually send mail.

WordPress sends the email through PHP's standard mail function, so a site whose server mail is not set up never delivers the link (WordPress troubleshooting FAQ, updated July 2026). That is why the next method exists.

When email does not work: reset in the database

If no reset email ever arrives, you can change the password directly in the database using phpMyAdmin from your hosting panel. WordPress stores users in a table, and you edit the password there.

The same WordPress guide describes the phpMyAdmin method: find the wp_users table, locate your username, and replace the value in the user_pass field with your new password. Set the Function dropdown next to it to MD5 so WordPress accepts the new password.

Back up the database before you touch it. The guide's own warning is blunt: use phpMyAdmin at your own risk, and seek help if you are unsure, because a wrong edit can lose data.

The database is also the way back from a lost admin account. A user's role sits in a separate table, wp_usermeta, as the wp_capabilities entry, so a demoted account is set back to administrator there. If the user was deleted, creating a fresh administrator with WP-CLI is the cleaner path.

When a plugin or theme locked you out

If the login screen is blank, throws a critical error, or loops, the cause is likely a plugin or theme rather than your password. Resetting the password will not help, because the code is breaking before the login can work.

The fix is to switch off the culprit at the file level. Connect over SFTP, open wp-content/plugins, and rename the suspect plugin's folder. WordPress cannot load a plugin it cannot find, so it deactivates, and the login usually returns.

If renaming one plugin does not help, rename the whole plugins folder to disable them all at once. This often follows an update, which is exactly why updates break things. The first thing we check after a login failure is the most recent plugin or theme change.

Preventing the next lockout

You prevent the next lockout by owning the accounts and keeping a way back in. The recovery above assumes you can reach the hosting and the database, and that is not always the case.

Keep the administrator account in your own name and email, not a former web person's.

In our experience, the hardest lockouts are not technical at all. We have seen a business unable to recover its own site because a previous provider held every login. In one case, a provider refused to hand the accounts over even after a police report.

A recent backup turns a lockout into a quick restore rather than a rebuild. Store the hosting, domain, and admin logins somewhere you control, so a staff change never becomes an outage.

Frequently asked questions

I never receive the password reset email. What now?

Reset the password in the database instead, using phpMyAdmin from your hosting panel. If the site's mail is not set up correctly, the reset link never arrives even though the feature works. Open the wp_users table, find your username, and set a new user_pass value with the format set to MD5. Back up first. If you have no database access, your host's support can reset it for you.

Can I create a new admin account without logging in?

Yes. With database access you can add a user to the wp_users table plus an administrator wp_capabilities entry for it in wp_usermeta, or promote an existing user. If your host offers WP-CLI, the WordPress command line, one command creates an administrator. There is also a file-based route: a temporary line in the active theme's functions.php that resets the main admin's password. Whichever you use, back up the database first and remove any temporary code once you are back in.

A plugin update locked me out. How do I undo it?

Deactivate that plugin at the file level, since you cannot reach the dashboard to do it normally. Connect over SFTP, open wp-content/plugins, and rename the plugin's folder. WordPress then treats it as gone and switches it off, which usually restores the login. Once you are back in, update or replace the plugin carefully, ideally after testing on a staging copy.

Is it safe to edit the WordPress database directly?

It is safe if you back up first and change only what you understand. The database holds your whole site, so a wrong edit can cause real damage, and WordPress's own guidance says to use phpMyAdmin at your own risk. Export a backup of the database before any change. If you are not confident, ask your host or a developer rather than experiment on a live site.

What if a former web person holds my admin account?

That is an ownership problem, not a technical one. If a previous provider controls the domain, hosting, or admin login, you may be locked out with no clean way back in. Recover what you can through the hosting company, who can often reset access for the account holder. Then move every login into your own name, so control sits with the business.

Will I lose content if I reset my password or disable a plugin?

No. Resetting a password changes only your login, and disabling a plugin turns off a feature without deleting your posts, pages, or images. Your content lives in the database and the uploads folder, both untouched by these steps. A disabled plugin can be switched back on later. Even so, keep a current backup, so any recovery starts from a known good copy.

Getting you back in and keeping you in

Storming Solutions builds custom-coded websites for Malaysian businesses and looks after the WordPress sites they already run, including getting owners back into sites they are locked out of. We set up the domain, hosting, and admin account in the client's own name, so a lockout is a quick fix rather than a hostage situation.

Locked out of your own site right now? Send us the details on WhatsApp for help getting back in, read why updates break things, or talk to us about web development with proper ownership and backups from day one.

WhatsAppCall 011-2333 6888