Knowledge Base
How to Reset Your WordPress Password
Regaining Access to WordPress
Multiple ways to reset your WordPress password.
Method 1: Lost Password Link
- Go to wp-login.php
- Click "Lost your password?"
- Enter username or email
- Check email for reset link
- Set new password
Method 2: phpMyAdmin
- Log into DirectAdmin → phpMyAdmin
- Select your WordPress database
- Open wp_users table
- Click Edit on your user
- In user_pass field, enter new password
- Change function dropdown to MD5
- 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