title: Error while sending QUERY packet
body: <p>i was trying to insert some data into the database but i got this error "<strong>Error while sending QUERY packet</strong>"  </p>
  
  <pre><code>$insertDeta = $conPat-&gt;prepare("insert into table1(data) VALUES(:data)");
  $insertDeta-&gt;bindParam(':data',$data);
  $conPat-&gt;beginTransaction();    
      $insertDeta-&gt;execute();
  $conPat-&gt;commit();
  </code></pre>
  
  <p>but what i think the problem is that size of the <strong>data</strong> is over 16MB.<br>
  the data type of the column is set as <strong>longtext</strong>, which i think can keep data as big as 4GB.  </p>
  
  <p>I dont know if PDOs is having problems running the query or transfering 16MB of data to the database.<br>
  Thats the only guess i can make as mysql might send the data in <em>packets</em> and the packet cannot hold data as large as 16MB.</p>