title: "MySQL server has gone away" in mysqli
body: <p>My web threw the error "MySQL server has gone away". I google it, find a method that use <code>mysql_ping</code> function, but I use extension mysqli, not mysql.</p>
  
  <p>How can I fix this problem?</p>