Error Code: 2006 – MySQL server has gone away

SQLyog reported an error when importing the database
Error Code: 2006-mysql Server has gone Away
Max_allowed_packet (a parameter of MySQL) is not set to a large enough value.
Modify directly using SQL statements:
The SET GLOBAL max_allowed_packet = 671088640;
This works well, after the change, there is no need to restart the service, it works directly

Read More: