Method 1: quick retrieval using tools
1. Download and reset the password file
The code is as follows: |
Copy code |
Download Address: http://soft.itbulu.com/zblog/zbp-passwd.zip
|
2. Install and open
Download the file and put it in the root directory of the website. Then open the file at our address.
Here we can see the page above, and click "login" to log on to the background directly. We can go to the background user management to change a new password.
To sum up, we can quickly and securely reset the new ZBLOGPHP password.
Method 3: write your own program for retrieval
Save the following code as the find. Php file and upload it to the root directory of the website:
PHP
<? Php
Include ("wp-config.php ");
If (empty ($ _ POST ['resetpwd']) {?>
<Form method = "post">
Enter the new password:
<Input name = "resetpwd" type = "password"/>
<Input type = "submit" value = "submit"/>
</Form> <? Php
} Else {
$ SQL = "UPDATE ". $ wpdb-> users. "SET user_pass = '". md5 ($ _ POST ['resetpwd']). "'Where User_login = 'admin '";
$ Link = $ wpdb-> query ($ SQL );
Wp_redirect ('WP-login. Php ');
Exit ();
}?
Open http: // domain name/find. php in the browser, enter the new password, and click submit to go to the blog logon page, indicating that the password is successfully reset.
Note: after the password is reset, delete the file to prevent others from using this method.
Method 3: modify a database
Log on to phpmyadmin, find the USER table of our current WORDPRESS database file, and change the password to "this can be encrypted using md5" (Red part). Then, when we log on to the background, use the password to log on and change it to the complex password you need.