Hi, One of my scripts gets a "MySQL server has gone away" error I tried various things to fix it but nothing worked. Can anyone give me suggestions on what I could try?
Right so I had a look and there are no big SELECT or UPDATE queries. All of the SELECT or UPDATE queries have a LIMIT 1. I randomly connected again to the db to ensure it doesn't time out. so not sure what else I can check.
Do you have access to the server's log files? Most of the time, you will see errors in the mysql error log that will better explain what the actual problem is.
Nope. I am on a shared hosting account and the log contains logs from other clients so they can't give them to me
It's a bit hard without seeing the code. I think the best thing to do in this instance is progressively work through your script to determine what exactly is triggering the error. O