"MySQL server has gone away"


I've setup a free-plan database with heroku for testing the application we're working, but I'm often getting this error:

(OperationalError) (2006, 'MySQL server has gone away')

It's happening with most of the queries, although not everytime.

Is it something with the free plan? Or might it be something with the code?

We plan to deploy our project within less than a month, for now I'm just assuming it's the free plan, since it doesn't happen in our internal server. Can anyone help me?

Bruno Croci.
1 person has
this question