← Back to WordPress

How to Reset Your WordPress Admin Password

Locked out of your WordPress admin? There are several ways to reset your password β€” from the login page to phpMyAdmin β€” depending on what access you still have.

Method 1: Lost Password on Login Page

At yourdomain.com/wp-login.php, click Lost your password? and enter your email address. WordPress sends a password reset link to the admin email. Check spam if you don't see it.

Method 2: Reset via phpMyAdmin

In cPanel, open phpMyAdmin. Select your WordPress database, then the wp_users table. Find your user row and click Edit. In the user_pass field, change the Function to MD5 and enter your new password in the Value field. Click Go.

Method 3: Reset via WP-CLI (SSH)

If you have SSH access:

wp user update admin --user_pass="NewPassword123!" --path=/home/username/public_html

Was this article helpful?

On This Page