Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm a server at my office to process some files and report the results to a remote MySQL server.

The files processing takes sometime and the process dies halfway through with the error: 2006, mysql server has gone away

Ive heard about the MySQL setting, wait_timeout, but do I need to change that on the server at my office or the remote MySQL server?

share|improve this question
add comment

1 Answer 1

do I need to change that on the server at my office or the remote MySQL server?

If it die while processsing, this error is thrown by the MySQL server at your office. Otherwise, dying after the process completed means that the remote MySQL server throw this error.

In your case, I suspect that you're sending a too large query to the remote MySQL server. You can increase the query limit by setting max_allowed_packet variable.

Take a look at the document for the common causes of this error.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.