Many students in the Web site, the first is in the local environment to make the site, and then through the site to move to the site space, this practice is very good, but also bring some unforeseen problems.
If the DZ Forum can not upload avatar is how to do the site more often encountered, the forum is done, the other functions are normal, but upload the avatar when there is a problem, showing "ucenter Info:can not connect to MySQL server."
From the picture, we can know that the ucenter is faulty and cannot connect to the database. We enter the backstage of the forum, click Ucenter. As a result, the following error occurs:
Via FTP or direct access to the server, locate the Uc_server/data folder under the Forum root directory and locate the config.inc.php file. We open the file in front of three lines, as shown in:
Found the problem, the original database server password (UC_DBPW) I did not modify it, and quickly revise it over. To the forum backstage, click Ucenter, you can visit, Avatar can also be uploaded. OK, the problem is done.
Discuz: Unable to upload avatar solution (can not connect to MySQL server)