mySQL connection limit
From: Titus Cheung (titus_at_ieee.org)
Date: 12/12/03
- Next message: Titus Cheung: "Call a local function or a separate PHP file?"
- Previous message: Jedi121: "Re: php.ini is not refreshing/being read when apache is restart"
- Next in thread: Michael Fuhr: "Re: mySQL connection limit"
- Reply: Michael Fuhr: "Re: mySQL connection limit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Dec 2003 04:43:31 GMT
Hello,
Thought I read somewhere saying that there is a limit to how many
connections are available per mySQL account or something like that. Can
someone please clarify?
I wrote a PHP tool that uses a different PHP file whenever someone hit an
HTML form button (ie Submit). It turned out that each one of these PHP
files need to re-open the link to the mySQL database by the following
snippet or else that particular file won't work:
@ $link = mysql_connect("localhost", "myself", "");
if (!$link == 1)
echo "Connection to database failed.";
But I thought that PHP will use the already opened link from the previous
PHP file and as a result the above is not necessary. Is this true, or only
if it is within the same PHP file? And would having called the above code
snippet too many times cause mySQL to prevent user "myself" from connecting
again?
Thanks
- Next message: Titus Cheung: "Call a local function or a separate PHP file?"
- Previous message: Jedi121: "Re: php.ini is not refreshing/being read when apache is restart"
- Next in thread: Michael Fuhr: "Re: mySQL connection limit"
- Reply: Michael Fuhr: "Re: mySQL connection limit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]