2 messages in com.mysql.lists.bugsRe: Problem with SCO and mysql_option...
FromSent OnAttachments
Federico Iorio22 Feb 2002 02:49 
Sinisa Milivojevic25 Feb 2002 09:24 
Subject:Re: Problem with SCO and mysql_options() api
From:Sinisa Milivojevic (sin@mysql.com)
Date:02/25/2002 09:24:59 AM
List:com.mysql.lists.bugs

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.