4

Connection timed out (trying to connect via tcp://db1.domain.com:3306)

view full story
linux-howto

http://serverfault.com – I'm getting intermittent errors in my Apache error_log like this: sql[10315]: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Connection timed out - /page.html - sql[10315]: Failed to connect to db: - /page.html - sql[9191]: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: [2002] Connection timed out (trying to connect via tcp://db1.domain.com:3306) - /page.html I can ping db1.domain.com (which is defined in my /etc/hosts file), I can telnet to db1.domain.com on port 3306. I can even use the cli mysql clie (HowTos)