Skip to content

Commit

Permalink
[opt](variables) enlarge the default value of max_allowed_packet (apa…
Browse files Browse the repository at this point in the history
…che#38697)

From 1MB to 16MB, same as MySQL 8.4.
This is to avoid "Packet for query is too large" error
when querying wide table or table with wide column.
  • Loading branch information
morningman authored Aug 2, 2024
1 parent 3e4b529 commit 024a4f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ public class SessionVariable implements Serializable, Writable {

// this is used to make c3p0 library happy
@VariableMgr.VarAttr(name = MAX_ALLOWED_PACKET)
public int maxAllowedPacket = 1048576;
public int maxAllowedPacket = 16777216;

@VariableMgr.VarAttr(name = AUTO_INCREMENT_INCREMENT)
public int autoIncrementIncrement = 1;
Expand Down

0 comments on commit 024a4f0

Please sign in to comment.