Warning: mysql_connect(): 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
me666
Forum Commoner
Posts: 87
Joined: Wed Oct 08, 2008 5:04 pm

Warning: mysql_connect(): Too many connections

Post by me666 »

hey, i often get this error from my website... Warning: mysql_connect(): Too many connections in /home/www/(website address)/database.php on line 2
Too many connections
does any1 know a way of overcoming this? if there is a way?
i sometimes get it even when i first come on to the site, and i know no1 else is looking at it, it takes serveral mins until i can refresh and get the site displayed.

thanks
staar2
Forum Commoner
Posts: 83
Joined: Fri Apr 06, 2007 2:57 am

Re: Warning: mysql_connect(): Too many connections

Post by staar2 »

you need to allow more connections it was setting var. Make sure when you use mysql you need to close the connection.
me666
Forum Commoner
Posts: 87
Joined: Wed Oct 08, 2008 5:04 pm

Re: Warning: mysql_connect(): Too many connections

Post by me666 »

im not sure how to allow more connections, and i use a free mysql that comes with the free webserver im using online so not sure if i have the right permisions to do that anyway. ive added the close command to the bottom of a few of my pages, and everything seams to be ok, so i expect aslong as i add it to the rest of them it should run a little better. Thanks
Post Reply