[SOLVED] Set timeout on unresponsive mysql server
Posted: Sat Sep 29, 2007 10:30 pm
Hey everyone,
I'm trying to look for a configuration file or a flag to call when using mysql_connect with a remote server, that might be inactive/offline, in order to decrease the wait/load time until mysql_connect spits back saying the server is unresponsive. Currently it takes about 10-15 seconds until the mysql error "Access denied for user 'ODBC'@'localhost' (using password: NO)" comes back.
FYI, this is not a problem in my coding. I have a computer on the network running mysql independently and currently have it turned off in order to test the page response of mysql turned off.
Anyone have any idea? I can't seem to find any relative information on php.net/mysql_connect
I'm trying to look for a configuration file or a flag to call when using mysql_connect with a remote server, that might be inactive/offline, in order to decrease the wait/load time until mysql_connect spits back saying the server is unresponsive. Currently it takes about 10-15 seconds until the mysql error "Access denied for user 'ODBC'@'localhost' (using password: NO)" comes back.
FYI, this is not a problem in my coding. I have a computer on the network running mysql independently and currently have it turned off in order to test the page response of mysql turned off.
Anyone have any idea? I can't seem to find any relative information on php.net/mysql_connect