I have also encountered the first one. My guesses are as follows: 1. The graphical tools such as navicat used will have strange problems, causing the connection to be lost; 2. It may be your sql execution Poor planning, resulting in too long time, being killed by the server, or by monitoring scripts, etc., or by the DBA.
Set max_allowed_packet to 200M and try
I have also encountered the first one. My guesses are as follows:
1. The graphical tools such as navicat used will have strange problems, causing the connection to be lost;
2. It may be your sql execution Poor planning, resulting in too long time, being killed by the server, or by monitoring scripts, etc., or by the DBA.
It means that your garbage SQL statement is executed too slowly and is immediately abandoned due to timeout.