Resetting Your WordPress Password via phpMyAdmin (Firstserv Guide)
Losing access to your WordPress site can be stressful—especially if it’s due to a security issue—but don’t worry. You can reset your password directly through your database using phpMyAdmin.
⚠️ Important: This method involves editing your database. If you’re unsure, we recommend contacting a developer or the Firstserv support team before proceeding.
Step 1: Find Your Database Name
If you host multiple websites, you’ll first need to identify which database your site uses.
Steps:
- Log in to cPanel
- Go to Domains → Domains
- Locate your website domain and open its document root (usually
/public_html) - Find the file named
wp-config.php - Right-click and select Edit
Look for this line:
✅ Make a note of the database name.
Step 2: Open phpMyAdmin
- In cPanel, go to Databases → phpMyAdmin
- In the left-hand sidebar, select your database
You will now see a list of tables.
Step 3: Locate the Users Table
- Find the table ending in
_users(commonlywp_users)
⚠️ The prefix (e.g. wp_) may vary depending on your setup.
Step 4: Edit the User Password
- Open the
_userstable - Locate the user account you want to update (by email or username)
- Click Edit next to that user
Step 5: Set a New Password
- Find the field called
user_pass - Enter your new password in plain text
- In the Function dropdown next to it, select MD5
Step 6: Save Changes
- Click Go to save the update
✅ Your password will now be reset.
Step 7: Log In
You should now be able to log in to your WordPress dashboard using the updated password.
Important Notes
- WordPress will automatically re-hash the password after your first login
- Always choose a strong, unique password
- If your site was compromised, also:
- Update all admin passwords
- Check for unknown users
- Update plugins, themes, and WordPress
Summary
To reset your WordPress password via phpMyAdmin:
- Find your database name in
wp-config.php - Open phpMyAdmin and select the correct database
- Edit the
_userstable - Update the
user_passfield using MD5 - Save and log back in
If you need help recovering access or securing your site after a lockout, the Firstserv support team is always available to assist.
