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 all
> 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 conne
Ellis [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 4:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] too many connections?
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.
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 ge
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:
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}:
Helo,
why you don't make some kind of "db_connect.php" which will make "mysql_pconnect()"
and include it in top of your first script? You then will be able use mysql query in
everyone of your page. You can also make $mysql_is_connected=true; there and check
that variable in other scrips if nee
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
Yeah, sometimes I open and close 2 or 3 permanent connections in one page. I
knida have to as each page is made up of a few different include files, and
if I dont do seperate connections, it mightnt work.
I'll recode my site to cache everything except search pages, or can I even
cache these as wel
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
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
kno
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??
A
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, Bu
13 matches
Mail list logo