Federico Iorio writes:
How-To-Repeat:
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
Hi!
Some problems with TCP/IP speed were fixed in 3.23.44.
Please try our latest binary for SCO.