Being locked out of your WordPress admin area is frustrating. Here are several ways to get back in.
Fix 1: Reset Your Password via Email (Easiest)
-
Go to
yourdomain.com/wp-login.php. -
Click "Lost your password?"
-
Enter your username or email address.
-
Check your email (including spam folder) for a password reset link.
Fix 2: Reset Password via phpMyAdmin (If Email Fails)
-
Log in to cPanel > phpMyAdmin.
-
Select your WordPress database from the left sidebar.
-
Find the table named
wp_users(the prefix may be different, likewp2_users). -
Click the "Browse" icon next to it.
-
Click the "Edit" (pencil) icon next to your admin username.
-
In the
user_passfield, select MD5 from the function dropdown menu. -
Enter your new password in the value field.
-
Click "Go." You can now log in with the new password.
Fix 3: Disable Plugins via FTP (If Getting a White Screen)
If you are getting an error or white screen at the login page, a plugin may be the cause.
-
Access your site via FTP or File Manager.
-
Go to
/wp-content/. -
Rename the
pluginsfolder toplugins_old. -
Try logging in again. If successful, rename the folder back and reactivate plugins one by one to find the culprit.