max database connections reached

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
CincoPistolero
Forum Newbie
Posts: 6
Joined: Thu Jun 23, 2005 4:30 pm

max database connections reached

Post by CincoPistolero »

I posted earlier about closing out a mysql_connection call. I closed the mysql_connection correctly and the site worked for about 20minutes and now I have the same error again.

WARNING: mysql_connect(): USER ****** has already more than 'max_user_connections' active connections in ../../../database.php on line 6. Unable to connect!

I closed out mysql by putting the below code in a footer file:

<?php mysql_close($connection); ?>

what else could cause the above error.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

STOP CROSS/DOUBLE POSTING!!
Locked