title: 'max_user_connections' set to 200 - still getting error
body: <p>Here is the mysql error:
  Connect failed: User 'db2498' has exceeded the 'max_user_connections' resource (current value: 200). </p>
  
  <p>I set the my.cnf:</p>
  
  <pre><code>[mysqld]
  max_connections = 500
  max_user_connections = 200
  </code></pre>
  
  <p>I set the max_user_connections in mysql for the user to 200 also. I've had 1400 people hit the site in about 10-20 minutes.  Each stay on for an average of 14 seconds, and I got about 1400 of these messages.</p>
  
  <p>I'm using PHP/Mysql.  This is the database class:</p>
  
  <pre><code>class DB{
  
  public function __construct(){
      $this-&gt;conn = new mysqli($this-&gt;host,$this-&gt;user,$this-&gt;pass,$this-&gt;db);
      /* check connection */      
  }
  public function selectSomething(){
      /* select data &amp; return */
  }
  public function __destruct()
  {
  $this-&gt;conn-&gt;close();
  } 
  }
  </code></pre>
  
  <p>This is how I call it:</p>
  
  <pre><code>$conn = new DB();
  $result = $conn-&gt;selectSomething();
  /* do something */
  
  $result = $conn-&gt;selectSomething();
  /* do something */
  
  $result = $conn-&gt;selectSomething();
  /* do something */
  </code></pre>
  
  <p>The users are on the site for an average of 14 seconds.  Why am I getting this error? Is it the destruct? Do I have the database wrapper set up wrong?  I'm lost, and tech support isn't much help.  </p>