Re: Mail Queue

From: Date: Fri, 16 Nov 2012 20:14:25 +0000
Subject: Re: Mail Queue
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31669@lists.php.net to get a copy of this message
Hello Christopher, > and becomes the error message: "Mail Queue Error: Cannot connect to > database" and this comes back for each iteration of the loop to the > end of the table. The first 150 emails are committed to the db but > the remainder aren't. 150 sounds like the default mysql connection limit; it accepts 150 connections. Maybe somehow each single insert causes a new mysql connection to be opened? Before running the script, connect via the terminal mysql client to your database. Run "show processlist". Then start your script, wait until it inserted a bunch of mails and run the processlist again. Did the connection count increase? -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#31669) next »