MySQL system variable 'max_allowed_packet'

来源:互联网 发布:电视机选购2017知乎 编辑:程序博客网 时间:2024/05/13 22:51
安装opencms时出现如下错误: 

  MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB).

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 (16MB).

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

 

解决方法:

 找到mysql的安装路径,找到my.ini文件,打开后在末尾行添加 max_allowed_packet=16M ,然后重启mysql服务即可。

原创粉丝点击