I have checked the answers at MySQL error 2006: mysql server has gone away None of them seem to fit my problem.
I am getting the error MySQL server has gone away
frequently.
It is not the connection timeout. The default timeout of 8 hours seems plenty.
I have tried upping the max_allowed_packet
to no avail. This then seemed irrelevant when I began printing out the offending SQL statement which was in my case: SELECT url FROM crawled WHERE frontier = 1 ORDER BY id
. Hardly a large statement which warrants upping max_allowed_packet
.
So, none of the given answers seem to fit my scenario. Any other reasons why this error may occur? Any possible fixes?