title: Mysql2 Error MySQL server has gone away
body: <p>I am getting this error occasionally. I have read some solutions in stackoverflow but they were about rails 2 or mysql. Any help will be appreciated.</p>
  
  <pre><code>ActiveRecord::StatementInvalid (Mysql2::Error: MySQL server has gone away
  </code></pre>