hello and thank you.
any idea what this means? i have not touched or changed my
config.php file since i put it up the first time... it contains my db
connect info. also, i just downloaded it from the server to see if it
had been modified and it had not. thanks again and best, addison
Warning:
This would make a whole lot more sense within a context...such as how
busy is your application, what kind of connection you are using
(pconnect vs. connect) and so on.
A quick search on MySQL's web site resulted in:
http://www.mysql.com/doc/en/Too_many_connections.html
Be sure to check out
any idea what this means? i have not touched or changed my
config.php file since i put it up the first time... it contains my db
connect info. also, i just downloaded it from the server to see if it
had been modified and it had not. thanks again and best, addison
Warning: Too many
i searched at mysql.com and it said basically what you are asking. i
contacted the server admin and they are going to re-set the server.
thank you for your time. best regards, addison
Assuming that line 5 is the dbconnect, is there a limit on the number of
connections that your MySQL server
You can also do something like this:
if ($db_link = mysql_pconnect($host, $user, $pass)) {
if (mysql_select_db($db,$db_link)) { return $db_link; }
else die(MySQL Error: Cannot select {$db} database using {$user}@{$host}:
.mysql_error());
} else die(MySQL Error: Cannot connect to {$db}:
Just open one connection. It'll work fine for multiple queries across
several include files. I have a project right now that uses about 5
different include files at any one time, and 1 connection works great. Also
keeping only one connection alive will speed up the script.
-Micah
At 09:14 PM
Im getting a too many connections error in my PHP pages at
http://www.free-ringtones.tv. I presume this is from the MySQL server, and I
know I access the database a lot for each page. So whats the solution to
this?? Write scripts that create static html pages that update every 20
minutes or so??
Send me the code around the lines that are giving errors.. Doesn't look
like a MySQL error to me.
-Micah
At 10:18 PM 10/23/2002 +0100, Georgie Casey wrote:
Im getting a too many connections error in my PHP pages at
http://www.free-ringtones.tv. I presume this is from the MySQL server, and I
On Wed, Oct 23, 2002 at 10:18:07PM +0100, Georgie Casey wrote:
Im getting a too many connections error in my PHP pages at
http://www.free-ringtones.tv. I presume this is from the MySQL server, and I
know I access the database a lot for each page. So whats the solution to
MySQL has a default of
Hi,
I'm using PHP to connect to a MySQL server, and occasionally I get the
following error:
Warning: Too many connections in
/usr/sites/www/gamewardens_forum/forumadmin.php on line 243
Unable to connect to Database Server
I'm using a persistant connection with the function mysql_pconnect,
10 matches
Mail list logo