We have a SCO Unix Open Server Ver. 5.0.5 with MySQL 3.23.43 x SCO 3.2
V5 (Intel) installed and we want set a connect timeout using the
following syntax:

timeout = 10;  /* sec */
mysql_init(&mysql);
mysql_options(&mysql, MYSQL_OPT_CONNECT_TIMEOUT, (char*) &timeout);
if (!mysql_real_connect(&mysql, host, user, password, database, 0, NULL,
0))
{
     printf("Failed to connect to database. Error: %s\n",
mysql_error(&mysql));
}

Unfortunately it doesn't work!!
("Failed to connect to database. Error: can't connect to MySQL server on
'195.62.231.55'")
The same example works correctly in a Linux environment or under SCO
without mysql_options instruction. Are there problems under SCO??
Could you help us?

Thanks a lot.
Regards,
Federico




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to