Hallo ich bekomme bei jedem 10ten klick auf meiner Webseite folgende Fehlermeldung:
Warning: mysql_pconnect() [function.mysql-pconnect]: Too many connections htdocs/include/mySql.class.php on line 43
Database error: Link-ID == false, pconnect failed
MySQL Error: ()
Session halted.
Gehostet wird die Webseite seit einer Woche bei Strato, davor bestand dieses Problem nie. Ich nutze mySQL 4 und PHP 4
So sieht meine Verbindefunktion in zeile 43 aus:
function verbinde() {
if ( 0 == $this->intLinkID ) {
$this->intLinkID=mysql_pconnect($this->strHost, $this->strUser, $this->strPasswort);
if (!$this->intLinkID) {
$this->halt("Link-ID == false, pconnect failed");
}
if (!mysql_query(sprintf("use %s",$this->strDatenbank),$this->intLinkID)) {
$this->halt("cannot use database ".$this->strDatenbank);
}
}
}
Kennt jemand die Ursache/Problembehebung?
Grüße Guma