Too many connections

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Monopoly
Forum Commoner
Posts: 41
Joined: Wed May 21, 2008 1:19 pm

Too many connections

Post by Monopoly »

Hello,
I made a simple forum in php and some users say that from time to time they get the mysql too many connections bla-bla-bla error . I googled th issue and found out almost nothing but that a variable max_connections should be somewhere in a system file ... Well I am using 000webhost.net and are there any solutions to this error?

P.S. I found out that the default max_connections is set to 100 , but 3 users online get the error already :crazy:
parimala
Forum Newbie
Posts: 8
Joined: Wed Jun 11, 2008 7:21 am

Re: Too many connections

Post by parimala »

yes it is possible to give the different databases connections in php

using mysql_pconnect
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Too many connections

Post by Benjamin »

You're most likely using shared hosting and you are also sharing those "100" database connections with everyone else who is hosting on that particular server. I would contact your hosting provider and inform them of this problem.
Post Reply