This topic was marked solved by its starter, on November 28th, 2014, 06:36 AM

Jurien

  • All i want is a couple days off
  • Posts: 132
Warning mysqli_connect
« on November 27th, 2014, 07:14 AM »
Error connecting to MySQL: Too many connections
Quote
Too many connections in /home/vsbwepmf/domains/linuxmintusers.be/public_html/forum/MintWedge/gz/app/Class-DB.php on line 55
Too many connections
class-DB.php line 55
Quote
$connection = mysqli_connect((!empty($db_options['persist']) ? 'p:' : '') . $db_server, $db_user, $db_passwd, empty($db_options['dont_select_db']) ? $db_name : '') or die(mysqli_connect_error());
Is this an server issue or something else,how to tackle or fix this. Forum and MySQL through Control Panel are unattainable

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Warning mysqli_connect
« Reply #1, on November 27th, 2014, 10:27 AM »Last edited on November 27th, 2014, 10:35 AM
In most cases (and almost on GoDaddy and other shared hosters) it's an server issue.
If this machine is dedicated to you, extend the my.cnf with the following code:

Code: [Select]
max_connections=200

Then restart MySQL.

On non dedicated systems make sure that connections are not persistent.
# dpkg-reconfigure brain
error: brain is not installed or configured