MySQL timeout

Ken Ray kray at sonsothunder.com
Tue Jul 15 19:51:49 EDT 2008


> Hi Ken - Nothing as fancy as that. I'm just using revOpenDatabase to get a
> connection ID. If either I or the database are offline I get the spinning
> pizza (Mac OSX) for a full 75 seconds before it returns a 'Can't connect to
> Mysql' error. 

There's an environment variable called "$MYSQL_CLIENT_TIMEOUT" that you can
set... I'm reading the value from a preference and executing:
 
  put gPrefsData["MySQLTimeout"] into $MYSQL_CLIENT_TIMEOUT

The timeout value is in seconds, btw...


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list