title: How to solve General error: 2006 MySQL server has gone away
body: <p>I'm doing an operation that inserts hundreds of records into a MySQL database.</p>
  <p>After inserting exactly 176 records I get this error:</p>
  <blockquote>
  <p>[PDOException] SQLSTATE[HY000]: General error: 2006 MySQL server has gone away</p>
  </blockquote>
  <p>Any ideas of how could I solve it?</p>
  <p>The process is with PHP.</p>