• Wednesday, February 25, 2026

Knowledge Base

How to Reset Your WordPress Password

Regaining Access to WordPress

Multiple ways to reset your WordPress password.

Method 1: Lost Password Link

  1. Go to wp-login.php
  2. Click "Lost your password?"
  3. Enter username or email
  4. Check email for reset link
  5. Set new password

Method 2: phpMyAdmin

  1. Log into DirectAdmin → phpMyAdmin
  2. Select your WordPress database
  3. Open wp_users table
  4. Click Edit on your user
  5. In user_pass field, enter new password
  6. Change function dropdown to MD5
  7. Click Go

Method 3: functions.php

Add temporarily to your theme's functions.php:

wp_set_password('newpassword', 1);

Replace 1 with your user ID. Remove after use!

Method 4: WP-CLI (Advanced)

wp user update admin --user_pass=newpassword

If Email Isn't Working

Use phpMyAdmin method if you're not receiving password reset emails.

After Resetting

  • Use a strong, unique password
  • Consider password manager
  • Enable two-factor authentication