max_allowed_packet specifies the maximum size in bytes of a network packet.
| Attribute | Description |
|---|---|
| Type | INT |
| Default value | 16777216
NoteThe default value is changed from 4194304 to 16777216 since OceanBase Database V4.2.1. |
| Value range | [1024, 1073741824] |
| Applicable scope | |
| Involved in serialization | Yes |
| Modifiable | You can use the SET GLOBAL statement to modify the global value of the variable. However, you cannot use the SET SESSION statement to modify a session value of the variable. You can only view the session value. The session value must be the same as the global value. Generally, this variable must be adjusted both in the client and the server. |