Unless it's a problem with the network connection it's probably a
problem with the number of connections allowed by the MySQL server.
This is usually set up to 100 by default, it should be increased to
something like 500.

MySQL has admin tools to monitor the connections to the server, use it
to monitor the number of connections and what's causing it.

    gabriel

On Aug 25, 4:46 am, J K <[email protected]> wrote:
> Hey everyone,
>
> I have one mysql db server, and one apache symfony server. It happens
> (very rarely) that the web server can't temporarily reach the db
> server, and I get those a couple times per day:
>
> Aug 23 16:00:52 symfony [err] {Doctrine_Connection_Exception} PDO
> Connection Error: SQLSTATE[HY000] [2003] Can't connect to MySQL server
> on 'xxxxxxxxxxxx' (4)
>
> Is there a way to log a bit more than that? Tweak the error message to
> include the SQL query that did not get sent? How would one go about
> auto-retrying those queries?
>
> Thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to