mysql_connect() fails randomly

From: Date: Mon, 18 Aug 2003 18:15:24 +0000
Subject: mysql_connect() fails randomly
Groups: php.general 
Request: Send a blank email to php-general+get-159968@lists.php.net to get a copy of this message
i've got a library file that i require() in all my scripts. it starts with this line: $dbh=mysql_connect() or die("mysql connect failed: " . mysql_error()); about 5% of the time, this fails for no apparent reason. it just prints mysql connect failed: with no error message. there's nothing wrong with the mysql server as far as i can tell. there are tons of available connection slots. any ideas? it also happens with mysql_pconnect() too. -jsd-

« previous php.general (#159968) next »