Jump to content

mysql server overload - a simple connect?!


samryan

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.