title: CodeIgniter mysqli real_connect(): MySQL server has gone away
body: <p>I am playing around with CodeIgniter 3 Dev and I keep getting this issue with MySQL.</p>
  
  <pre><code>mysqli::real_connect(): MySQL server has gone away
  </code></pre>
  
  <p>Anyone else playing with CI 3 and happened to run into this and found a fix?</p>
  
  <p>My work is local using wamp with a remote connection into a mysql server. I tried changing <code>php.ini</code></p>
  
  <pre><code>mysqli.reconnect = Off 
  </code></pre>
  
  <p>to</p>
  
  <pre><code>mysqli.reconnect = On 
  </code></pre>
  
  <p>but it still pops up after an hour or two.</p>