登入mysql 使用命令show VARIABLES like '%max_allowed_packet%';
查看当前的值,使用命令:set global max_allowed_packet = ?*1024*1024; ?大小根据需要自己设置
重启查看一下