Discuz: Unable to upload avatar solution (can not connect to MySQL server)

Source: Internet
Author: User

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)

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.