If you’ve forgotten your WordPress admin password, here’s how to reset it:
- Use the "Lost Your Password?" Feature:
- Go to your WordPress login page (e.g.,
yourdomain.com/wp-login.php
). - Click Lost your password? below the login form.
- Enter your admin email address and check your email for a reset link.
- Go to your WordPress login page (e.g.,
- Reset via phpMyAdmin:
- If you can’t access your email, you can reset the password directly in the database using phpMyAdmin.
- Log in to cPanel and click phpMyAdmin under the Databases section.
- Select your WordPress database.
- Go to the wp_users table and find the admin account.
- Click Edit next to the admin username.
- In the user_pass field, select MD5 from the function dropdown, and enter your new password.
- Click Go to save the changes.
- If you can’t access your email, you can reset the password directly in the database using phpMyAdmin.
- Use FTP to Add a Temporary User:
- You can also add a new admin user via FTP by adding code to your functions.php file:
- Access your theme’s folder via FTP:
wp-content/themes/yourtheme/
. - Edit functions.php and add this code:
- Log in using the new credentials, then remove the code from functions.php.
- Access your theme’s folder via FTP:
- You can also add a new admin user via FTP by adding code to your functions.php file: