Last update at :2024-03-14,Edit by888u
What should I do if I forget my WordPress backend password? It is normal to forget the login password of a website if you have many websites or have not used them for a long time. So what should you do if you forget the password of your WordPress backend account? Don’t panic. The editor below will share several solutions for forgetting the WordPress backend password. There is always one that suits you.
Solution after forgetting WordPress backend password
1. Use WordPress password retrieval function
The WordPress backend supports the function of retrieving passwords by email. If the email address of the administrator account is correct and valid, click the "Forgot Password" button on the backend login interface, enter the correct email address, and you will receive an email containing To receive an email to reset your password, just log in to your email and follow the prompts. (It is more suitable for novices, and the correct information is filled in when installing the website.)
2. View username and change password through database
1. Log in to the website phpmyadmin database management tool and find the wp_users table of the database. Here you can see the default user admin, whose password is encrypted.
2. In the wp_users data table, modify the user parameter user_pass value to 21232f297a57a5a743894a0e4a801fc3, and click Execute. The WordPress password is encrypted using MD5. After 21232f297a57a5a743894a0e4a801fc3 is decrypted, it becomes admin. Your background password will be changed to admin. Then log in to the background and change the password.
3. Change the password through sql statement
Log in to the website phpmyadmin database management tool and execute the following SQL statement:
UPDATE wp_users SET user_pass = MD5('PASSWORD') WHERE wp_users.user_login ='admin' LIMIT 1;After execution, the password will be reset to password, which is the string inside the MD5 brackets and single quotes in the above statement. Similarly, the admin at the end of the above statement is your background management account.
4. Use PHP to retrieve your password.
The PHP method is ultimately a way to modify SQL query statements, but it only provides a user interface. Copy and save the following code as a password-resetter.php file, upload it to the WordPress root directory, then run the file and enter the password to reset it.
users." SET user_pass = '".md5($_POST['emergency_pass'])."' WHERE User_login = 'admin'"; $link = $wpdb->query($sql); wp_redirect('wp-login.php'); exit(); } >Similarly, you need to change the administrator account in the sixth line from the bottom of the above code, the example is admin.
5. Delete configuration file
Enter the root directory of the website, delete the wp-config.php file, and then re-visit the website, it will be reinstalled, so you can get a new password. (This method requires remembering the database password first)
6. Reinstall WordPress
This method is generally not recommended. It is more suitable for people who have just built a website and installed it, but they have forgotten their passwords after just installing the program.
The above is the solution shared by the editor after forgetting the WordPress backend password. Of course, the best way is to remember the WordPress password yourself. All account passwords need to develop the habit of recording them at any time, so that this will not happen in the future. The phenomenon.
Recommended site search: French proxy server, US host ranking, Shandong website registration, php host space, US domain name website, US website space, cloud server rental, free domain name registration, mainland China ip proxy, virtual host space,
p>
发表评论