写入配置文件的办法:
max_allowed_packet = 16M //但是这种有时候不支持,1024*1024*16这种有的也不支持
max_allowed_packet = 16777216 //是1024*1024*16,写成最后乘积的,100%支持
命令:临时:
show global variables like 'max_allowed_packet';
SET GLOBAL max_allowed_packet=67108864;]
延时:
show global variables like '%timeout';
SET SESSION wait_timeout=5;