My Oracle Support Banner

Recommended Size For max_allowed_packet Variable (Doc ID 2451058.1)

Last updated on MAY 18, 2024

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.


Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see for a complete list of those changes, and in which minor versions it happened.

To understand the relationship of few of the packet sizing variables in MySQL and their use , eg for replication.

Depending on the application in use, there may be a requirement to set a specific size ( typically an up to N number ) for packet sizes.

This will allow the application to communicate with the server with packet sizes larger than the default:

Default Value (>= 5.6.6) 4194304
Default Value (<= 5.6.5) 1048576
Default Value (>= 8.0.3) 67108864


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.