In the windows environment! ! ! !
1. Locate my.inc file, not your installation directory path is C: \ ProgramData \ MySQL \ MySQL Server 5.7 this path, attention ProgramData folder is hidden need to show up! ! !
C: \ ProgramData \ MySQL \ my.inc have a file path at this 5.7 MySQL Server.
2. Open the file Ctrl + F to find max_allowed_packet location, modify the values behind.
3. Note! ! Be adjusted according to the size they need, it is seemingly the biggest 1024M, who knows more will be restored to 1024M.
After modification using the show VARIABLES like '% max_allowed_packet%'; statement to query whether the amendment is successful!