title: SQLAlchemy/MySQL Lost connection to MySQL server during query
body: <p>SQLAlchemy (0.9.8) and mysql-5.6.21-osx10.8-x86_64 and MAC OS X 10.3.3 (Yosemite)</p>
  
  <p>I keep getting intermittent:</p>
  
  <pre><code>InterfaceError: (InterfaceError) 2013: Lost connection to MySQL server during query u'SELECT..... '
  </code></pre>
  
  <p>I have read up a few thread and most cases are resolved by adding this to my.cnf </p>
  
  <pre><code>   max_allowed_packet = 1024M
  </code></pre>
  
  <p>which should be more than big enough for what I tried to do. After doing this, I step hit it intermittently. And putting this line in /etc/my.cnf:</p>
  
  <pre><code>   log-error = "/Users/&lt;myname&gt;/tmp/mysql.err.log"
     log-warnings = 3
  </code></pre>
  
  <p>I am hoping to get more details, but all I see is something like this:</p>
  
  <pre><code>   [Warning] Aborted connection 444 to db: 'dbname' user: 'root' host: 'localhost' (Got an error reading communication packets)
  </code></pre>
  
  <p>I have reached a point where i think more detail better logging may help, or if there's something else i could try before this. </p>
  
  <p>Thanks.</p>