max_allowed_packet functions

max_allowed_packet functions — get or set the maximum data packet size.

Syntax

max_allowed_packet_get ()
max_allowed_packet_set (value)
    

Arguments

value

A number.

Returns

The _get function returns the current value; the _set function returns the newly-set value.

Description

These functions get or set the size of the biggest data packet that the server will allow. This is 16M in MySQL 3.23. See A.2.8 Packet too large Error in the MySQL documentation for more information.