MySQL Server Has Gone Away

How to solve “MySQL server has gone away” Problem

Some times you  get the message “MySQL server has gone away” in your application. What are the causes of getting this error. This is a general error which can have a number of possible causes. The one certainty is that the MySQL database is no longer listening on the connection – but this does not(…)