Method 1
The simplest way is to directly modify the database and execute
The code is as follows: |
Copy code |
UPDATE 'dede _ admin' SET 'pwd' = 'c3949ba59abbe56e057f'. After execution, the password is "123456" |
Method 2
Another way is to write a password reset file according to the above tool.
Resetpwd. php
After downloading this file and placing it in the root directory of your site, you only need to run it, and the admin password will be reset to 000000.
The file content of this method is as follows:
The code is as follows: |
Copy code |
<? Php /* * @ Desc: DEDECMS resets the admin password to 000000, which is applicable to DedeCms V5.6. * @ Auth: ityizhan.com */ $ Password = '000000'; // the password to be reset, which can be customized. Require_once (dirname (_ FILE _). "/include/common. inc. php "); $ Dsql = new DedeSql (false ); $ Dsql-> ExecuteNoneQuery ("update' #@__ admin 'set pwd = '". substr (md5 ($ password), 5, 20 ). "'Where userid = 'admin '"); $ Dsql-> Close (); Echo 'password reset successful! The new password is '. $ password; ?> |
Method 3
Radminpass. php
1. Download the script file radminpass. php for resetting the password of the administrator account. Decompress the file and download the two encoding versions, gbk and utf8, and obtain the script that is consistent with your system code.
Dedecmsreset password file .rar
Here, we use www.daermay.com as an example. The dedechina system code is gbk. Here we take radminpass. php under the gbk directory and upload it to the root directory of the dedechina website.
2. Execute the radminpass. php script file, that is, open it in the browser.