Page 1 of 1

Too many connections

Posted: Wed Jul 16, 2008 4:44 am
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:

Re: Too many connections

Posted: Wed Jul 16, 2008 7:12 am
by parimala
yes it is possible to give the different databases connections in php

using mysql_pconnect

Re: Too many connections

Posted: Wed Jul 16, 2008 11:11 am
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.