Can't reach wp-admin: reset login and password

wp-admin, login, password reset, wp-cli, phpmyadmin, lockout · 0 found this helpful

Use the first method that fits. They go from simplest to most hands-on.

Method 1: Sign in from your account (no password needed)

  1. Open Account → Hosting → your site → WordPress.
  2. Click Admin beside your site, or click Manage and then WordPress admin. It opens in a new window, already signed in.
Sites in WordPress, with Admin and Manage beside each

If you're in, change your password under Users → Profile.

Method 2: Reset link

  1. Go to https://example.ca/wp-login.php.
  2. Click Lost your password?
  3. Enter your username or email. Check spam.

If no email arrives, the site's mail may not work. Use method 3, and see Send WordPress email through SMTP.

Method 3: Set a password with WP-CLI

cd ~/public_html
wp user list
wp user update sarah --user_pass='Use-A-Long-New-Passphrase-42'

Replace sarah with the username from wp user list. See Use WP-CLI.

Method 4: Set a password in phpMyAdmin

  1. Open Account → Hosting → your site → Databases, click Open phpMyAdmin, and select your WordPress database.
  2. Open the wp_users table. Your prefix may differ. See Use phpMyAdmin.
  3. Click Edit on your user.
  4. In user_pass, choose MD5 in the Function column, type the new password in Value.
  5. Click Go. Sign in, and WordPress upgrades the hash.

Method 5: Create a new admin with WP-CLI

wp user create rescue [email protected] --role=administrator --user_pass='Another-Long-Passphrase-17'

Delete this account once you're back in.

Login problems that aren't passwords

Symptom Fix
Page reloads on login Clear cookies. Check that Settings → General addresses match your real URL. See Change a WordPress site's URL
"Too many redirects" Conflicting HTTPS or www rules. See Force HTTPS
403 or blocked Our firewall or a security plugin blocked your IP. Contact support
White screen See Fix the WordPress white screen
Plugin locks you out Rename wp-content/plugins to plugins-off temporarily. See Find a plugin causing problems

Was this helpful?

Still stuck? Ask us and we'll walk you through it.