How to change WordPress password
If you forgot the password to enter your WordPress administration panel, you have several methods to recover it.
Method 1 — Recover it by mail
- Enter the administration login and click on Forgot your password?:
- You will receive an email to the administrator address with instructions for assigning a new password.
Method 2 — Recover it via FTP
- Connect via FTP to your hosting account.
- Download the
functions.phpfile of the active template. - Right after the first line (
<?php), add this code:wp_set_password( 'nuevacontraseña', 1 ); - Upload the modified file back to your account.
- Enter the administration panel with the password
nuevacontraseña. - Once inside, edit
functions.phpagain and delete the code you added. If you leave it, your password will reset every time you load the site.
Method 3 — Change it from phpMyAdmin
- Log in to your cPanel and open phpMyAdmin.
- Select your WordPress database:
- Open the user table (
wp_users): - Click Edit for the admin user (usually
#1): - Type the new password in the
user_passfield. Important: select theMD5function from the drop-down menu for proper encryption. - Click Save (or Go) and you’re done. You will see a screen similar to this:
For more details, please refer to official WordPress documentation .
Recommended readings
Still need help?
If this guide didn’t solve your issue, our team can help you via ticket.