---
updatedAt: 2026-05-21T09:14:56.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/installation/llms.txt
---

# Increase MySQL Default Packet Size

Set max_allowed_packet=8M in /etc/my.cnf or /etc/mysql/mysql.conf.d/mysqld.cnf to prevent packet-too-large errors when storing builds in MySQL.

Some data files (such as builds and configurations) are stored in MySQL, so increase the maximum allowed packet size to avoid large-packet errors. For more information, refer to <a href="http://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html" target="_blank">Packet Too Large</a> in the MySQL documentation.

JFrog recommends using an option file to permanently set the `max_allowed_packet` parameter in `/etc/my.cnf` or `/etc/mysql/mysql.conf.d/mysqld.cnf`. For example:

```properties
# The MySQL server
[mysqld]

max_allowed_packet=8M
```

<Callout icon="📘" theme="info">
  If `/etc/mysql/mysql.conf.d/mysqld.cnf` does not exist, create the file under the absolute path and not under _$JFROG_HOME
</Callout>

After you modify this value, restart MySQL.

## Related Topics

* [MySQL for Artifactory](mysql-for-artifactory)
* [Configure Artifactory to Use MySQL](configure-artifactory-to-use-mysql)
* [Tune MySQL for Artifactory](tune-mysql-for-artifactory)
* [Full-DB and Full-DB-Direct Binary Providers](full-db-and-full-db-direct-binary-providers)
* [Database Setup Workflow](database-setup-workflow)