緣由:是因爲默認的通訊緩衝區的最大長度爲50M(max_allowed_packed)。通信
處理辦法:ab
//查看當前max_allowed_packet的大小
show global variables like 'max_allowed_packet';
//修改max_allowed_packet的大小
set global max_allowed_packet=1024*1024*50;