Bugzilla, an open source bug tracking system uses MySQL for the database. When you try to attach a document to the bug that is greater than 1MB in size, you will get the error message shown below. This article explains how to fix this problem by changing the MySQL max_allowed_packet database parameter and bugzilla maxattachmentsize parameter.
When a MySQL client or the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection.
MySQL client’s default max_allowed_packet value is 16M
增加Bugzilla附件大小
解决Bugzilla附件大小限制
最新推荐文章于 2025-07-04 10:50:52 发布
本文介绍了如何通过调整MySQL的max_allowed_packet参数和Bugzilla的maxattachmentsize参数,来增加Bugzilla附件的大小限制,从而允许上传超过1MB的文件。步骤包括在Bugzilla配置中更改maxattachmentsize为3000KB以支持3MB附件,以及在MySQL配置文件中设置max_allowed_packet=3M并重启服务。

最低0.47元/天 解锁文章
6520





