I cannot log in to my WordPress admin
If you cannot log in to WordPress admin, the cause is usually a password reset email that does not arrive, a security plugin or two-factor setup that locked you out, or a redirect loop. All can be fixed from your hosting account without the old password.
The problem
You enter your login and get “incorrect password”, a page that sends you straight back to the login screen, or a “lost your password” email that never comes. Nobody else on your team can get in either, or the person who set the site up has left.
How to fix it
- Try “Lost your password?” with your username and, separately, your email address. Check spam. If no email ever arrives, the site is not sending mail. See WordPress emails not sending.
- If the page just reloads the login screen, clear cookies for the site or try a private window. Then check that the site address in Settings and in your browser match, with the same www and the same https.
- If a security plugin or two-factor setup is blocking you, use your host’s file manager or SFTP and rename the plugin’s folder inside
wp-content/plugins. That switches it off. Log in, then turn it back on and fix its settings. - If you can reach the database, open phpMyAdmin from your host’s control panel, find the users table (usually
wp_users), and edit your row. Set the password field and choose MD5 as the function. WordPress upgrades it after you log in. - If your host gives you SSH and WP-CLI, list users and set a new password:
wp user list wp user update USERNAME --user_pass=NEWPASSWORD - If your administrator account is gone from the list, someone removed it. Treat the site as possibly hacked and read the first hour after a hack.
- Once in, add a second administrator account for someone you trust, and store both logins in a password manager.
When to stop
Stop when you do not own the hosting account either, when the administrator is missing or you see accounts you do not know, or when editing the database feels risky. See nobody knows the passwords for getting control of the accounts.
Or I can do it for you
You do not have to fight this yourself. Getting you back in is a quick one-off I quote, and if the site is business-critical you can send an emergency request. I move fast on emergencies. See email, DNS, hosting and everything else in the web area, or get a quote.