title: Drupal 7 PDOException: (possibly a max_packet_size issue?)
body: <p>After saving a View i got this error come up on all pages in Drupal 7. After some research i think it's a problem with the "max allowed packet" in Mysql being set too low...currently 68MB. I have requested it be set to 250MB. But any further diagnosis of the problem would be welcomed.</p>
  
  <pre><code>Additional uncaught exception thrown while handling exception.
  
  Original
  
  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT format, type, language FROM {date_format_locale}; Array ( ) in system_date_format_locale() (line 3650 of /home/mysite/public_html/beta1/modules/system/system.module).
  
  Additional
  
  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] =&amp;gt; 1 [:db_insert_placeholder_1] =&amp;gt; php [:db_insert_placeholder_2] =&amp;gt; %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] =&amp;gt; a:6:{s:5:&amp;quot;%type&amp;quot;;s:12:&amp;quot;PDOException&amp;quot;;s:8:&amp;quot;!message&amp;quot;;s:132:&amp;quot;SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT format, type, language FROM {date_format_locale}; Array ( ) &amp;quot;;s:9:&amp;quot;%function&amp;quot;;s:27:&amp;quot;system_date_format_locale()&amp;quot;;s:5:&amp;quot;%file&amp;quot;;s:61:&amp;quot;/home/mysite/public_html/beta1/modules/system/system.module&amp;quot;;s:5:&amp;quot;%line&amp;quot;;i:3650;s:14:&amp;quot;severity_level&amp;quot;;i:3;} [:db_insert_placeholder_4] =&amp;gt; 3 [:db_insert_placeholder_5] =&amp;gt; [:db_insert_placeholder_6] =&amp;gt; http://beta1.mysite.co.uk/ [:db_insert_placeholder_7] =&amp;gt; [:db_insert_placeholder_8] =&amp;gt; 83.244.234.228 [:db_insert_placeholder_9] =&amp;gt; 1352306457 ) in dblog_watchdog() (line 157 of /home/mysite/public_html/beta1/modules/dblog/dblog.module).
  
  Uncaught exception thrown in session handler.
  
  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 206 of /home/mysite/public_html/beta1/includes/session.inc).
  </code></pre>
  
  <p>thanks</p>
  
  <p>lee</p>