All Systems Operational|support@delhihosting.com
WordPress

How to Reset a WordPress Password

26 Dec 2025 · 4 min read · DelhiHosting Team

Locked out of WordPress? There are several reliable ways back in, from the standard email reset to database-level recovery when email isn’t working.

Use the email reset

On the login page, click "Lost your password?", enter your username or email, and follow the link sent to you. This is the quickest route when your site can send email.

Reset via the database

If email fails, open phpMyAdmin in cPanel, find the users table, and update the password field (using the MD5 function) for your account. This forces a new password directly.

Create a user via code

Advanced users can add a temporary admin account through a small snippet in the theme’s functions file, then log in and tidy up. Always remove the snippet afterwards.

Quick tips
  • Try the email reset first
  • Use phpMyAdmin if email is broken
  • Update the password with MD5
  • Remove any temporary admin afterwards
Key takeaway

Use the email reset when you can; when you can’t, phpMyAdmin lets you set a new password directly in the database.

Related WordPress guides

Need a hand with this?

Our Delhi-based engineers set up, secure and speed up WordPress for you — free migration included.