samryan Posted October 6, 2008 Share Posted October 6, 2008 Warning: mysql_connect() [function.mysql-connect]: Too many connections in connection.php on line 3 Too many connections connect.php <?php // mysql connection mysql_connect("localhost", "USERNAME", "PASSWORD") or die(mysql_error()); mysql_select_db("DATABASE") or die(mysql_error()); ?> If I watch the mysql processes list when running "connection.php" I get over 100 new connections at which point the script dies. Can anyone see anything up with this? I've rebooted the server numerous times and my other php scripts work... Link to comment https://forums.phpfreaks.com/topic/127272-mysql-server-overload-a-simple-connect/ Share on other sites More sharing options...
samryan Posted October 6, 2008 Author Share Posted October 6, 2008 Wrong forum, sorry, could a moderator move please? Link to comment https://forums.phpfreaks.com/topic/127272-mysql-server-overload-a-simple-connect/#findComment-658239 Share on other sites More sharing options...
darksystem Posted October 8, 2008 Share Posted October 8, 2008 at the end of the page, try to call mysql_close function. that might help you. hope it helps. regards, Mark Collecta - Your Collectibles store http://collecta-mania.com.au Link to comment https://forums.phpfreaks.com/topic/127272-mysql-server-overload-a-simple-connect/#findComment-659649 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.