The following problems occur during opencms installation: Your & amp; # x27; max_allowed_p_MySQL

Source: Internet
Author: User
The following problems occur during opencms installation: Youramp; amp; # x27; max_allowed_packetamp; amp; # x27; variableissettolessthan I. problems

The following error occurs when you install opencms:

MySQL system variable 'max _ allowed_packet 'is set to 1048576 bytes (1 MB ).

Please note that it will not be possible for OpenCms to handle files bigger than this value in the VFS.

Error while checking the server configuration!

-------------------------------------------

Your 'max _ allowed_packet 'variable is set to less than 16777216 Byte (16 MB ).

The required value for running OpenCms is at least 16 MB. Please change your MySQL configuration (in the my. ini or my. cnf file ).

2. Solution

This problem occurs because the imported SQL file is greater than the default max_allowed_packet value. Solution: for example, in my. the cnf modification is added to: max_allowed_packet = 16 M # or higher. you can also add this parameter when mysqld is started, but this variable must be loaded and effective only when mysqld is restarted, so you must restart mysqld! I think the former is the best solution.

You can restart the mysql server. You can see that the operation is successful.

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.