Sometimes when working on your WordPress site, you may accidentally lock yourself out of the WordPress admin area. To get back in, you will need to fix the issue that locked you out.
There are few reasons why you could be locked out of WordPress admin, so let’s take a look at each of them one by one. Hopefully through this process of elimination, you will be able to figure out the solution for your problem.
Error Establishing Database Connection
Are you seeing this error on your entire site? The reason why you get this error is because WordPress is unable to establish a database connection. This could happen for various reasons. It could happen if your database got corrupted for some reason. It could happen if your web hosting server is having some issues. If this is your issue, then please call your hosting provider.
White Screen of Death
Are you seeing a white screen on your WordPress admin? This issue is often referred to as the WordPress white screen of death. It usually happen because you exhausted the memory limit. It could be caused by a poorly coded plugin or theme. It could also be caused by unreliable web hosting. If you are seeing this error, then you may need to FTP into your site and disable the plugins, or login to cpanel and increase your memory limit.
Incorrect Password Issue
Sometimes, even when you are typing the correct username and password combination, you won’t be able to login. When you try to reset your password, you never receive the email. This can happen if you were a victim of a hack. We would recommend that you reset your WordPress password from phpMyAdmin.
This method can be a bit overwhelming for new users, but this is your best bet.