title: HY000 2006 MySQL server has gone away
body: <p>So, I saw that there is a lot of questions about this problem, but i couldn't find any solution. I try in PHP to connecto to my database on hosting server but I get this:
  <strong>[HY000] [2006] MySQL server has gone away</strong></p>
  
  <p>The code of PHP file looks like this:</p>
  
  <pre><code>&lt;?php
  
  $mysqli = new mysqli('database_addres', 'user', '', "database_name");
  
  ?&gt;
  </code></pre>
  
  <p>I don't make some query calls or something like that. I tried to connect by PDO and <code>mysql_connect()</code>, but there is the same error.
  <code>connect_timeout</code> is set to 10, <code>wait_timeout</code> to 200, <code>innodb_buffer_pool_size</code> to 536870912. So everything seems to be ok. Do I miss something?   </p>