Discuz Site Database Migration

Source: Internet
Author: User
Tags mysql in

your Discuz site database migration, or modified password, but also the following related configuration file modification to not appear 1045 error

Take Windows system as an example:
First login Remote Desktop, enter CMD in Run, single open command mode, and then enter net stop MySQL//stop MySQL Service

Site system needs to be modified in two places Discuz and Uc-center:
1, Path:/site root directory/config/config_global.php This depends on the path of your site installation.
Open config_global.php File modification: $_config[' db ' [' 1 '] [' dbpw '] = ' original password ';
Modify the original password to the new database password.
  
2. Path:/website root directory/config/config_ucenter.php
Open config_ucenter.php file also to modify: Define (' UC_DBPW ', ' original password ');
Modify the original password to the new database password. In this non-modified case, the user includes the administrator can not log on, this is the user login admin password.
  

3. Path:/website root directory/uc_server/data/config.inc.php
Open config.inc.php File modification: Define (' UC_DBPW ', ' original password ');
Modify the original password to the new database password.

Restart MySQL service, input net start MySQL in cmd mode, otherwise 2003 error will occur

The entire forum is back to normal access here.

Discuz Site Database Migration

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.