When looking at the MySql 5.5 basic installation, I noticed that the mysql client sets the default value for max_allowed_packet
to be 16M while the server mysqld uses 1M as the default value. This seems like a bit of a mismatch to me and at best backwards. The client is using default settings that can easily trounce the server limit.
Does anyone know why this is the default setup? Was it intentional or just an overlooked setting that deviated as the products evolved?
The max_allowed_packet
is a global variable, and you cannot set max_allowed_packet
for session.
More information - max_allowed_packet
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.