How to Change WordPress Password in Under 5 Minutes
Bulletproof Backups for Your WordPress Website
Fortify your business continuity with foolproof WordPress backups. No data loss, no downtime — just secure, seamless operation.
For the sake of WordPress security, you will eventually need to update your login. Whether you’re doing a routine update or are completely locked out, you need a reliable fix.
The good news is, it’s easier than you think.
We’ll show you how to change WordPress password, covering every method from simple to advanced (even if you can’t remember your existing password)
TL;DR: For common situations like a routine update or a forgotten password, stick to the simple resets using the dashboard or email. When you must opt for advanced methods, using a backup plugin will safeguard your core files so you can recover if the edits cause a problem.
A) How to change WordPress password while logged in
This is the simplest way to change your password, perfect for routine security or if you just want a new login.
Navigate to the correct user profile. For your own password, go to Users > Profile. If you’re an administrator changing someone else’s password, you’ll go to Users > All Users, find their name, and click the Edit link.
Generate a new password. Scroll down toward the bottom of the page until you see the Account Management heading. Click the Set New Password button. WordPress will instantly create a very strong, secure password for you.
Set your preferred password. You can either accept the secure password WordPress generated (which is a good idea) or punch in a strong password yourself. Use the Password Strength Indicator to make sure your password is rated as Strong. A weak password is a significant security risk.
⚠️ Note: Limiting login attempts is a key way to reduce the security risk from brute force attacks. These automated bots constantly try to guess simple credentials, making a Strong rating vital.
For your own profile, click the Update Profile button to save. You’ll also see a Log Out Everywhere box, a critical step if you suspect any unauthorized access.
When updating another user’s profile, click the Update User button to save. Here, you will also find a Send Reset Link button, which is often the better and more secure option.
B) Using the “Lost Your Password?” Email Link
This is your first option when you’re locked out of your site but still have access to the email address connected to your account.
Find the reset link. Navigate to your site’s login page, which is typically yourwebsite.com/wp-login.php. Click the Lost your password? link located directly below the login form.
Request the reset email. On the next page, provide either your registered username or the email address for the account. Click Get New Password to have the system send a reset link to your inbox. Open the email and click the unique reset link.
📋 Note: This link is time-sensitive and can only be used once, so act on it as soon as it arrives.
Enter your new password. You will be taken to a secure page where you can set a new password. Click Reset Password to save the update. You can now log in with your new credentials.
Password reset email not arriving?
It’s a common and frustrating problem when the reset email doesn’t appear. Before moving to more advanced methods, check these things first.
📋 Note: That ‘slight delay’ is often tied to your WordPress hosting quality. Cheaper plans can have slower servers, which directly impacts email speed and reliability.
C) Using the Database (phpMyAdmin)
This method allows you to change your password directly in your website’s database, which is perfect when you’re locked out, and emails aren’t working.
Access your hosting control panel. Log in to your hosting account (using cPanel, Plesk, or another panel) and open the tool called phpMyAdmin.
Find the users table. On the left-hand sidebar, click the name of your WordPress database. A list of database tables will appear. Find and click on the wp_users table.
Locate your user account. Find your username in the list and click the Edit link next to it.
Edit the password field. In the user_pass row, you need to do two things. First, in the Function dropdown menu for that field, you must select MD5. This is a critical step that encrypts your password correctly.
Enter your new password. In the Value box for the user_pass field, delete the existing text and type your new, desired password. Once done, scroll to the bottom and click the Go button.
You have now manually reset your password. You can head to your login page and use it to access your site.
D) Change password via FTP
This is an advanced technique for when you are locked out and have no other way in. You will need an FTP client like FileZilla and your server credentials.
⚠️ Note: Editing your functions.php file is risky. An error could take your site offline. Always ensure you have a backup of your entire site before making any changes.
Connect to your site and find the functions.php file. Use your FTP client (like FileZilla) to access your website’s files. Navigate to the /wp-content/themes/ folder and open the directory for your currently active theme to locate functions.php.
Insert and customize the reset code. Open the functions.php file for editing. Immediately after the opening <?php tag at the very top, add this exact line of code:
wp_set_password( 'newpassword', 1 );
Be sure to replace ‘newpassword’ with the strong password you want to use. The 1 represents the user ID of the account; for the first administrator, this is almost always the correct ID.
Upload the modified file and log in. Save the functions.php file and upload it back to your server, overwriting the original. The code will run automatically, so you can now go to your login page and use the new password to get in.
Post password change security checklist
After changing your password, especially if you suspect a security issue, it’s wise to run through a quick security checkup.
Troubleshooting common issues
Even with the right steps, you might run into an issue. Here are some common problems and their solutions.
Parting thoughts
Knowing how to manage your WordPress password is a fundamental part of website ownership. Whether you’re using the simple dashboard editor or a more advanced fix like phpMyAdmin, the key is to remember you have a clear path forward.
With a backup of your entire website as a safety net, you can act with confidence. The next time you find yourself locked out, you won’t need to panic because you’ll know exactly how to take back control.
FAQs
How do I reset my WordPress password?
You can reset your password by clicking the “Lost your password?” link on your site’s login page. After entering your username or email, you will receive a reset link in your inbox.
How do I change my WordPress admin username and password?
You can change your password from the Users > Profile section, but you cannot change your username from the dashboard. Changing a username requires either a dedicated plugin or a direct edit in the database.
How to change a WordPress password using the database (phpMyAdmin)?
You can change a password by editing the wp_users table in phpMyAdmin and finding your user row. In the user_pass field, select MD5 from the function dropdown and enter your new password in the value box.
How to reset a WordPress password on localhost?
The email reset method often fails on localhost, so the most reliable way is to use phpMyAdmin. Access your local database, find your user in the wp_users table, and manually set a new password using the MD5 function.
How do I change the WordPress login URL or page?
You can change the default login URL by using a security plugin like WPS Hide Login or Wordfence. This is a common security practice to protect your site from brute-force login attempts.
Tags:
Share it:
You may also like
WordPress phpMyAdmin: Master The Ins And Outs
Managing your WordPress site will eventually lead you to its database. When that happens, you’ll likely face phpMyAdmin, and honestly, its interface can be intimidating. The unfamiliar terms and countless…
WordPress Enable Revisions: The Easiest Way for Non-Techies
WordPress revisions are meant to be your safety net. But what happens when you accidentally delete a crucial paragraph and discover that feature isn’t there to save you? It’s a…
LifterLMS Review: Is It Right For Your Courses?
Sorting through LMS plugins is overwhelming, and by now, LifterLMS has likely caught your eye as a possible solution. Well, you’re in the right place. This LifterLMS review is designed…
How do you update and backup your website?
Creating Backup and Updating website can be time consuming and error-prone. BlogVault will save you hours everyday while providing you complete peace of mind.
Updating Everything Manually?
But it’s too time consuming, complicated and stops you from achieving your full potential. You don’t want to put your business at risk with inefficient management.
Backup Your WordPress Site
Install the plugin on your website, let it sync and you’re done. Get automated, scheduled backups for your critical site data, and make sure your website never experiences downtime again.