MySQL Forums
Forum List  »  Connector/ODBC

Re: Heyyy... I COULD SOLVED IT !!!!
Posted by: yves sucaet
Date: March 12, 2009 03:21PM

I'm glad it worked out for you, but this doesn't solve my problem. My website runs PHP. Many scripts require DB access. So when many pages get requested simultaneously, this error occurs.

I have the following test script (114 successes, 6 failures e.g.):

<?php
$p = 0;
$n = 0;
for ($i = 0; $i < 120; $i++) {
$conn = mysql_connect("www.server.com", "editor", "secret");
if ($conn) {
echo "Success!\n";
mysql_close($conn);
$p++;
} else {
echo "Failed test $i\n";
$n++;
}
sleep(1);
}
echo "\n$p successes, $n failures\n";
?>

I'm running WinXP x64 edition, so the ODBC connection pooling option isn't even available to me! PHP-version = 5.2.6

Options: ReplyQuote


Subject
Written By
Posted
Re: Heyyy... I COULD SOLVED IT !!!!
March 12, 2009 03:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.