Have discuz database, forgot admin password, how to go backstage

Source: Internet
Author: User
Tags administrator password

Very simple, you register a user, the password set a little bit simpler,
Then find the Password field and salt field in the Uc_members table in the Ucenter database and change the password and salt fields of the administrator account in the Uc_members table to the same field values as the new registration. Then the Cdb_members table in the Forum database to find and modify the Administrator account password field value for the newly registered user in this table of the password field values, when you modify these, your administrator password and your new registered user's password is the same.
Discuz The password for this product is to use your own password + randomly generated six-bit string and then encrypted with MD5, salt is a randomly generated six-bit characters, as long as the randomly generated six-bit characters you modify into the same, then the database stored in the encrypted password is the same.

$result =mysql_query ("select * from"). Uc_dbtablepre. " Members where username= ' admin username '); $row =mysql_fetch_array ($result); $salt = $row [' salt ']; $newpwd =md5 (MD5 ($_REPWD). $salt); mysql_query ("Update"). Uc_dbtablepre. " Members set password= ' new password ' where username= ' admin username ');
Reset the password to the new password, and here "Uc_dbtablepre" is the table prefix at installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.