Focus on cloud service provider activities
Notes on website operation and maintenance

Solve the problem of "UCenter info: Can not connect to MySQL server" in the Discuz program

Although the Discuz community program has no special highlights since it was acquired, because there is no other better choice of similar programs, and the advantages of the Discuz program still exist, many netizens prefer Discuz to build community programs. Lao Zuo had never used this program before. This time, a netizen needed to migrate the program, so he helped solve the problem. After migrating the website file, importing the database, and modifying the database link file, click the background UCenter menu, and an error message "UCenter info: Can't connect to MySQL server" appears.

 Resolving the Discuz program

Judging from the error report, there should be some database link files that have not been modified properly.

uc_server/data/config.inc.php

Because Lao Zuo is not very familiar with the DZ program (he has never used it at all), he thought that only a few database link files under the config folder could be modified after migrating the data. In fact, there is one location above that needs to be modified.

 Resolving the Discuz program

The database information is modified and replaced here. After that, refresh the cache to see if the background can enter the ucenter

 UCenter info: Can not connect to MySQL server

It seems that this problem has been solved.

PS: Discuz can meet the needs of most user community websites, and over the years, there have been many documents to solve problems.

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Solve the problem of "UCenter info: Can not connect to MySQL server" in the Discuz program