Security · Guide
How to Find WordPress Username and Password (Step by Step)

Short answer
You can find your WordPress username in your welcome email, the Users screen, phpMyAdmin or WP-CLI. Your password cannot be read anywhere because WordPress stores only a hash of it. Check your browser's saved passwords first, then reset it with the Lost your password link.
Key takeaways
- Check browser and password manager saved logins first.
- WordPress accepts your email address in place of the username.
- Passwords are stored as hashes, so they can only be reset, not read.
- phpMyAdmin and WP-CLI work when the reset email never arrives.
- Keep a second admin account and a current admin email to avoid lockouts.
Can you find your WordPress username and password?
You can usually find your username, but you cannot read your existing password anywhere, because WordPress stores only a scrambled hash of it, so the fix is to reset it.
That surprises many people. Even the site owner, the host and a developer with database access cannot see your password in plain text. They can only replace it with a new one.
Your username is different. It is stored as plain text, so you can look it up in several places:
- Your original welcome email
- The Users screen in the dashboard, if someone else can log in
- Your hosting panel's WordPress tool
- The database, through phpMyAdmin
- WP-CLI, if you have command line access
Before anything else, check your browser's saved passwords. If you ever let Chrome, Safari, Firefox or a password manager save the login, both details may be stored there already.
Where do you check your browser or password manager first?
Open your browser's saved password list and search for your site's domain, because that is the fastest way to recover both the username and the password.
Each browser keeps saved logins in a slightly different place:
- Chrome. Open the menu, then Passwords and autofill, then Google Password Manager.
- Safari on Mac. Open System Settings or Safari settings, then Passwords.
- Firefox. Open Settings, then Privacy & Security, then Saved Logins.
- Edge. Open Settings, then Profiles, then Passwords.
Search for your domain name, not WordPress. Saved logins are listed by site address.
If you use 1Password, Bitwarden or a similar app, search the vault for your domain too. Your computer may ask for its own password before showing saved logins.
On a phone, check the same place in your browser app or the phone's built-in password manager. iPhones keep saved logins in the Passwords app, and Android phones usually keep them in Google Password Manager.
If you find more than one saved login for the same site, try the newest one first. Old entries often stay behind after a password change.
How do you find your WordPress username?
Search your email for the WordPress welcome message, try your email address in the login form, or look up the username in the dashboard or database.
WordPress lets you log in with either your username or your email address. So if you know the email, you may not need the username at all. Type the email into the Username or Email Address box and try your password.
If that fails, try these places:
Also check that you are on the right site. People who run several sites, or a staging copy, often try a valid login on the wrong address.
- Your inbox. Search for Your new WordPress site or your host's setup email. It often lists the admin username.
- Another admin. Ask a colleague who can log in to open Users > All Users. Usernames appear in the first column.
- Your hosting panel. Many hosts show the admin username inside their WordPress manager.
- The database. Open phpMyAdmin and look at the users table.
Our guide to WordPress user roles explains why some accounts can see other users and some cannot.
How do you reset a forgotten WordPress password?
Go to your login page, click Lost your password, enter your username or email, and follow the reset link WordPress sends you.
This is the standard and safest method. It works on almost every self-hosted WordPress site.
- Go to your login page, usually your domain followed by /wp-login.php.
- Click Lost your password? below the form.
- Enter your username or email address.
- Open the email and click the reset link.
- Choose a strong new password and save it.
The official WordPress password reset guide lists the same steps plus backup methods.
Not sure where the login page is? Our guide to the WordPress admin URL shows the usual addresses.
What if the reset email never arrives?
If the reset email does not arrive, check spam, then reset the password from your hosting panel, phpMyAdmin or WP-CLI instead.
Many WordPress sites cannot send email reliably. Shared servers often block or flag messages from WordPress. So a missing reset email is common.
Also confirm you typed the email address linked to your WordPress user. A small typo, or an old address you no longer check, looks exactly like a missing email.
Check your spam and promotions folders first. Search for the word password. Wait a few minutes, then request another link only once.
If nothing arrives, move on to one of the methods below. Our guide to fixing a password reset email that is not received explains the email side in depth.
How do you reset the password in phpMyAdmin?
Open phpMyAdmin from your hosting panel, edit your user row in the users table, and set a new password using the MD5 function so WordPress can read it.
This method works when you cannot log in and email fails. Take a database backup first, because a wrong edit can lock you out further.
- Log in to your hosting panel and open phpMyAdmin.
- Select your WordPress database.
- Open the users table. It is usually called wp_users, but the prefix may differ.
- Find your row. The user_login column is your username.
- Click Edit on that row.
- In the user_pass field, choose MD5 in the function column.
- Type a new password in the value box and click Go.
WordPress accepts the MD5 value once and upgrades it to its stronger hash the next time you log in. Newer WordPress versions use bcrypt through PHP's password_hash function.
Not sure which database belongs to your site? Our guide on finding your WordPress database name shows where to look in wp-config.php. The phpMyAdmin documentation covers the interface itself.
How do you find or reset login details with WP-CLI?
Run wp user list to see every username and email, then wp user update with a new password to reset it from the command line.
If your host offers SSH access, WP-CLI is the fastest route. Connect to the server, go to your WordPress folder, and run:
wp user list --fields=ID,user_login,user_email,roles
That prints each user's ID, username, email and role. To set a new password for a user, run:
wp user update 1 --user_pass="new-strong-password"
Replace the number with the right user ID. The wp user update reference lists all the options. Our list of useful WP-CLI commands includes other recovery commands.
Which recovery method should you use?
Pick the simplest method you have access to, starting with saved passwords and the email reset.
| Method | What you need | Recovers username | Resets password |
|---|---|---|---|
| Browser or password manager | Your own device | Yes | Shows the saved one |
| Lost your password link | Working email | No | Yes |
| Hosting panel tool | Hosting login | Often | Often |
| phpMyAdmin | Hosting login | Yes | Yes |
| WP-CLI | SSH access | Yes | Yes |
| Ask another admin | A second admin user | Yes | Yes |
What if you do not have hosting access either?
If you cannot reach the dashboard or the hosting account, recover the hosting login first, because it controls every other recovery method.
Your host's login page has its own forgot password link. It uses the email you signed up with when you bought hosting, which may differ from your WordPress email.
Check old receipts and invoice emails from the host. They show which email address and which company holds the account, which matters when several people helped set up the site.
If a developer or agency built your site, ask them. They may hold the hosting account, the domain or both. Ask them to add you as an owner rather than just sending a password.
If you are still stuck, our guide to fixing being locked out of wp-admin covers rarer cases such as security plugin lockouts.
How do you avoid losing your login again?
Store your login in a password manager, keep your admin email current, and add a second administrator account you control.
A few small habits prevent most lockouts:
- Use a password manager so you never need to remember the password.
- Check the admin email under Settings > General and keep it current.
- Keep a second admin account with a different email address.
- Fix site email so reset links actually arrive.
- Turn on two-factor login for every admin.
If you need to change your password later, see our guide on how to change a WordPress password.
Frequently asked questions
Where is the WordPress password stored?
It is stored in the users table of your WordPress database as a one-way hash, not as readable text. Nobody can turn that hash back into your password. Anyone with database or command line access can only replace it with a new password.
Is the WordPress username the same as my email?
Not always. Your username is chosen when the account is created, and it may be admin, your name or something your host picked. Your email is separate, but WordPress lets you log in with either one on the standard login form.
Can my web host tell me my WordPress password?
No. Your host can see the database, but the password is hashed there. Many hosts do offer a tool in their control panel that lets you set a new WordPress admin password or log in with one click.
Can I change my WordPress username?
Not from the profile screen, because WordPress locks the username field after the account is created. You can create a new admin with the username you want, move content to it and delete the old account, or edit the username in the database carefully.
Is it safe to reset a password through phpMyAdmin?
Yes, if you back up the database first and edit only the password field of the correct user. WordPress reads the MD5 value once and upgrades it to its modern hash at your next login, so set a strong password and log in soon after.
Sources
- Reset your password WordPress.org Documentation
- wp user update WordPress Developer Resources
- password_hash PHP Manual
- phpMyAdmin documentation phpMyAdmin
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


