title: mysql, Error Code: 2013. Lost connection to MySQL server during query
body: <p>When I query with:</p>
  
  <pre><code>SELECT * FROM database.table LIMIT 0, 100
  </code></pre>
  
  <p>it works fine.</p>
  
  <p>But when I try:</p>
  
  <pre><code>SELECT * FROM database.table where date='2016-12-01' LIMIT 0, 100
  </code></pre>
  
  <p>then it will give me an error:</p>
  
  <p>Error Code: 2013. Lost connection to MySQL server during query</p>
  
  <p>I understand there are a couple of other such threads around and I have tried the suggested solutions including changing connect_timeout to an very large value. Unfortunately, it did not work out for me.</p>
  
  <p>Any suggestion will be appreciated. Thank you in advance!</p>