<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Max_allowed_packet on shocksolution.com</title><link>https://shocksolution.com/tags/max_allowed_packet/</link><description>Recent content in Max_allowed_packet on shocksolution.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 10 Apr 2018 03:19:57 +0000</lastBuildDate><atom:link href="https://shocksolution.com/tags/max_allowed_packet/index.xml" rel="self" type="application/rss+xml"/><item><title>General error: 2006 MySQL server has gone away</title><link>https://shocksolution.com/posts/general-error-2006-mysql-server-has-gone-away/</link><pubDate>Tue, 10 Apr 2018 03:19:57 +0000</pubDate><guid>https://shocksolution.com/posts/general-error-2006-mysql-server-has-gone-away/</guid><description>&lt;p&gt;&amp;ldquo;MySQL Server has gone away&amp;rdquo; is a cryptic error that can be hard to troubleshoot (look at all the various responses on Stack Overflow!) Many problems can cause this error; I would like to document one specific case. In this example, the client is a PHP app using the Phalcon framework:&lt;/p&gt;&#10;&lt;div class="code-block"&gt;&#10; &lt;button class="code-copy" type="button" hidden aria-label="Copy code to clipboard"&gt;&#10; &lt;span class="code-copy-label" aria-hidden="true"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[Mon, 09 Apr 18 03:34:08 -0400][ERROR] SQLSTATE[HY000]: General error: 2006 MySQL server has gone away&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;exception &amp;#39;PDOException&amp;#39; with message &amp;#39;SQLSTATE[HY000]: General error: 2006 MySQL server has gone away&amp;#39; in /path/to/ModelBase.php:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Stack trace:&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;#0 [internal function]: PDOStatement-&amp;gt;execute()&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;...&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;#17 {main}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10; &lt;/div&gt;&lt;p&gt;This error can be tricky to troubleshoot. I looked in three logs:&lt;/p&gt;</description></item></channel></rss>