在终端打开sql服务器 运行如下两个命令 show VARIABLES like '%max_allowed_packet%'; set global max_allowed_packet=10485760;