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.
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.
The database information is modified and replaced here. After that, refresh the cache to see if the background can enter the ucenter
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.