'max user connections' problem
Posted: Wed Jun 20, 2007 3:00 pm
Hi there ,
i get this after a few clicks -queries
Warning: mysql_pconnect() [function.mysql-pconnect]: User 'that_User' has already more than 'max_user_connections' active connections in /home/that_User/public_html/New/Connections/cone.php on line 9
Fatal error: User wwwboat_xrono1 has already more than 'max_user_connections' active connections in /home/that_user/public_html/New/Connections/cone.php on line 9
//cone.php//
$hostname_cone = "localhost";
$database_cone = ".....";
$username_cone = ".....";
$password_cone = "......";
$cone = mysql_pconnect($hostname_cone, $username_cone, $password_cone) or trigger_error(mysql_error(),E_USER_ERROR); //line9//
mysql_select_db($database_cone, $cone);
and i call this script like this: <?php require_once('Connections/cone.php'); ?> in every .php file in the site
Why is this happening .i use permanent db connection,and i know my server 'max user connections' is 25 which is ok
the thing that worries me is that this is happening more some hours of the day,i don't know if it's my fault or what
the site is not indexed,no robots to take the user connections or something
please help
thanks
i get this after a few clicks -queries
Warning: mysql_pconnect() [function.mysql-pconnect]: User 'that_User' has already more than 'max_user_connections' active connections in /home/that_User/public_html/New/Connections/cone.php on line 9
Fatal error: User wwwboat_xrono1 has already more than 'max_user_connections' active connections in /home/that_user/public_html/New/Connections/cone.php on line 9
//cone.php//
$hostname_cone = "localhost";
$database_cone = ".....";
$username_cone = ".....";
$password_cone = "......";
$cone = mysql_pconnect($hostname_cone, $username_cone, $password_cone) or trigger_error(mysql_error(),E_USER_ERROR); //line9//
mysql_select_db($database_cone, $cone);
and i call this script like this: <?php require_once('Connections/cone.php'); ?> in every .php file in the site
Why is this happening .i use permanent db connection,and i know my server 'max user connections' is 25 which is ok
the thing that worries me is that this is happening more some hours of the day,i don't know if it's my fault or what
the site is not indexed,no robots to take the user connections or something
please help
thanks