Hi,
I have a script which runs continually in SSH, when the script is loaded around 10 SQL queries are performed to gather relevant data into PHP arrays then the script continues in a while loop.
The server has recently been changed and before hand there were no errors at all, yet on the new server there is an error occurring.
After the initial data has been loaded into the arrays the connection to MySQL just instantly dies and the following error is thrown out:
Warning: SQL - MySQL server has gone away Line Unknown in functions.php on line 91
Having checked around line 91, there is nothing to be found and it is affecting every query performed afterwards.
Has anyone come across this error before or know of a solution?
Thank you.