Have just got a surprise and would appreciate some suggestions.
The simple query below updates a table. I have used it severally without qualms but now it does not work as usual causing the MySQL server to go away. What could be responsible. Thanks.
UPDATE rmc_raw_data
INNER
JOIN handover_main
ON handover_main.handover_time = rmc_raw_data.rmc_time
AND handover_main.handover_date = rmc_raw_data.rmc_date
SET rmc_raw_data.handovers = 'Handover'
Increase the timeout of the session. It’s most likely set to 5 minutes or so which is too short for long running queries.
Here are the details from the mysql documentation:
http://dev.mysql.com/doc/refman/5.1/en/gone-away.html
Here are the details for changing the timeout options:
http://dev.mysql.com/doc/refman/5.1/en/mysql-options.html