Resetting a WordPress Password (Firstserv Guide)

If you’ve lost access to your WordPress account, there are several ways to reset your password. This guide covers three methods, starting with the simplest and most recommended approach.


Method 1: Use the “Lost your password?” Link (Recommended)

This is the easiest and safest way to reset your password.

Steps:

  1. Visit your WordPress login page:
    https://yourdomain.com/wp-admin
    
  2. Click Lost your password?
  3. Enter your username or email address
  4. Click Get New Password

Reset Your Password

  • Check your email inbox (linked to your account)
  • Click the reset link provided
  • Enter a new password (WordPress will suggest a strong one)
  • Click Reset Password

✅ You can now log in using your updated credentials.


Method 2: Reset via phpMyAdmin (Advanced)

If you don’t have access to your email, you can reset your password directly in the database.

⚠️ Important: This method involves editing your database. Only proceed if you are confident and have a full backup.

  • Access cPanel → phpMyAdmin
  • Locate your database and open the _users table
  • Edit the user_pass field
  • Set a new password and apply the MD5 function

👉 For full step-by-step instructions, refer to our phpMyAdmin password reset guide.


Method 3: Reset Using WP-CLI (Advanced)

If your hosting plan includes SSH access, you can reset a password using WP-CLI.


Step 1: Connect via SSH

  • Open cPanel → Terminal or connect using an SSH client
  • Log in using your hosting credentials

Step 2: Navigate to WordPress Directory

 
 
 
 
 
 
Shell
 
 
cd public_html
 
 

(Adjust if your site is in a different folder.)


Step 3: List WordPress Users (Optional)

 
 
 
 
 
 
Shell
 
 
wp user list
 
 

Step 4: Reset the Password

 
 
 
 
 
 
Shell
 
 
wp user update username --user_pass="newpassword"
 
 
 
  • Replace username with the actual username
  • Replace "newpassword" with your chosen password

✅ The password will be updated instantly.


Important Notes

  • Always try the email reset method first
  • For advanced methods, ensure you have a full backup of your site and database
  • Incorrect changes in the database or via CLI can cause issues

Summary

You can reset your WordPress password using:

  1. Password reset link (recommended and easiest)
  2. phpMyAdmin (for database-level changes)
  3. WP-CLI via SSH (for advanced users)

If you’re unsure about any of these steps or need help regaining access, the Firstserv support team is always available to assist.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install the Wordpress Litespeed cache plugin

  LiteSpeed Cache – What It Is and How It Helps If you’re running a WordPress website and...

How to disable the WordPress CRON job and set it up in cPanel

  Optimising WordPress Cron (wp-cron) – Firstserv WordPress does not...

Fixing WordPress mixed content issues

  Fixing Mixed Content Warnings When you visit a website using https://, your browser expects...

How to optimise your WordPress site

Optimising Your WordPress Website (Firstserv Guide) WordPress is a...

Configuring Redis Object Caching using Litespeed Cache

Object Caching and Redis (Firstserv Guide) What is Object Caching? Object caching is a...