The error Lost connection to MySQL server during query occurs when the connection between Skyvia and the MySQL server is dropped while a command is being executed. This typically happens when processing large datasets or when server-side timeout limits are too low.
net_read_timeout or net_write_timeout limits being exceeded.max_allowed_packet limit on the MySQL server.0 (no limit) the following parameters:If the issue persists, increase the following system variables on your MySQL server:
| Parameter | Description |
|---|---|
max_allowed_packet | Maximum size of a single data packet. Increase if transferring large rows or BLOBs. |
net_read_timeout | Seconds the server waits for data from the client before aborting the read. |
net_write_timeout | Seconds the server waits to write a block to the client before aborting. |
These can be set in your my.cnf / my.ini configuration file or applied dynamically:
SET GLOBAL max_allowed_packet = 67108864;
SET GLOBAL net_read_timeout = 3600;
SET GLOBAL net_write_timeout = 3600;