Dec 22, 2025
Domantas G.
8min Read
Getting locked out of your WordPress admin account can be frustrating, especially if it occurs suddenly, and you don’t know why it happened nor how to fix it.
It’s easy to overcome this situation if you have a webmaster or developer on your team. If you manage your WordPress website by yourself, you’ve come to the right place.
This article will help you understand the various reasons that may cause you to be locked out of WordPress. We’ll go through nine possible causes and their solutions so you can regain access to the site.
Download all in one WordPress cheat sheet
Before proceeding to fix the issue, there are three tasks you need to do:
There are nine reasons why you could be locked out of WordPress. They include wrong data inputs, system errors, and cyberattacks. In this section, we will help you to identify the situation and act accordingly.
Warning! Make sure to back up your site before following any of these troubleshooting tips. If the changes and attempts to fix the problem cause any issues, you’ll still have all the site’s critical data on hand.
One of the most common reasons for getting locked out of WordPress is entering incorrect login credentials. They typically include a username and a password.
Usernames may not directly reference someone’s real name, and passwords are case-sensitive and usually hidden as we type. That’s why it’s possible to enter an incorrect password or username inadvertently.
How to Fix This?
Carefully type in your credentials, paying special attention to the capitalization. To avoid issues like forgetting or mistyping your passwords, consider using a password management app such as LastPass or 1Password.
If that didn’t solve the issue, try resetting the password by using WordPress’s built-in recovery feature on the login page. Here’s a step-by-step guide:
If you recently migrated your domain to a new server, make sure that the domain is pointing to the correct registrar. Otherwise, your account may be locked out as well.
You may forget your password, but there’s also a chance that someone has gained access to your site and changed it.
If the password recovery on the login screen didn’t work or you didn’t receive a password reset email, it can be because your WordPress website is not sending emails.
How to Fix This?
You can resolve this problem by resetting your password from your WordPress hosting account control panel.
We’ll guide you through this process using Hostinger’s hPanel and phpMyAdmin:


Then, log in to WordPress using the new password.

If you can’t log in, your username doesn’t exist, or you can log in but no longer have administrative privileges, it means you’ve lost access to the WordPress admin dashboard.
This can happen if the site owner has revoked your admin rights. Another possible reason is a cyberattack where the hacker has deleted your WordPress administrator privileges.
How to Fix This?
If you have lost admin privileges due to a cyberattack, add a new admin user to your WordPress database through phpMyAdmin. Here’s a guide on how to do it:

You’re all set now. Log in to WordPress with the new administrator credentials.
Some site owners use security plugins to limit the number of attempts users can make to log in at one time. It’s a great way to prevent brute-force attacks, but it can also become the reason for you being locked out of your own account.
How to Fix This?
The login form will work again after some time, but if you can’t wait, you can opt to deactivate the plugin through an FTP client. Here’s how to do it:
Now, the plugin is disabled, and you can log in right away.
Important! Keep in mind that this is a solution for when you need to access the dashboard immediately and can’t wait for the login form to work again. We strongly recommend reactivating the security plugin to keep your WordPress site secure.
Once you have successfully accessed the WordPress dashboard, go back to the FTP client and rename the deactivate_limit-login-attempts folder back to its original name. In this example, we rename it back to limit-login-attempts.
After renaming the plugin folder, navigate to your WordPress dashboard and the Plugins tab. Check if the plugin is activated – if not, simply click Activate.
Changing your WordPress site’s domain name may also get you locked out. If you recently made such a change, check if there’s any inconsistency between your site’s URL and the one stored in the MySQL database.
How to Fix This?
The MySQL database stores all WordPress data, including site URLs. If you want to change your WordPress URL in the database, use phpMyAdmin to solve the problem.
A database connection error affects your entire WordPress site. It makes you unable to connect to the database, as in addition to storing URLs, it also stores all your site information, including content, user accounts, and permissions.
This usually happens when there’s something wrong with the server or the database. Corrupted files can also lead to this – a poorly-working plugin is one of the various reasons that may cause the issue.
How to Fix This?
There are several solutions for WordPress database connection errors:
If all the previous methods still couldn’t restore the connection, try to disable the plugins you’ve recently installed before the incident. Follow the steps in section four to deactivate the plugin.
Database errors can also be caused by a troubled database server. This typically happens on a shared host, where the number of permitted concurrent connections is limited. Simply contact your hosting provider to check if the error is on their end, and ask them to fix it.
The white screen of death is the blank white page you may see when trying to access the WordPress dashboard. The reasons behind this problem vary from bad plugins to insufficient website memory.
How to fix this?
Here are some options to fix the WordPress white screen of death:
If you see a message that says parse error: syntax error when you try to access the site, incorrect code is the cause of the issue. This type of error is very common, as even a single misplaced letter can trigger it. Fortunately, it can also be fixed easily.
How to Fix This?
Here’s what you can do to fix a syntax error:
Determine the source of the error by opening your site on a browser and waiting for the syntax error message to appear. It will show you the full path of the error.
A recent addition of a new plugin or theme may also lead to you being locked out of WordPress. The reason might be the .htaccess file of the plugin or theme being corrupted or misconfigured.
The .htaccess file is a configuration file that contains essential server instructions. It is used to enable or disable various functionalities and features, including applying access restrictions to your website.
How to fix this?
Fix the corrupted .htaccess file by using an FTP client:

Now you can return to your WordPress website, access the login page, and log in as usual.
Here’s a quick recap of the nine issues causing you to be locked out of WordPress we’ve listed in this article and how to fix them:
Now, you’ll be able to quickly regain access to your WordPress admin dashboard. If you have any questions, don’t hesitate to leave a comment or contact our support team.

All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.
Comments
September 04 2020
Thank you for this guide! It really helped ?