forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set connect_timeout?

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS
View previous topic :: View next topic  
Author Message
tadamsmar



Joined: 28 Dec 2009
Posts: 6

PostPosted: Thu Jan 14, 2010 11:17 pm    Post subject: How to set connect_timeout? Reply with quote

I want to set that for a client program using the C library.

The client function that I have written is trying to connect with a database over the network.

I want it to timeout faster than the default.

I don't see a way to set connect_timeout in a program.

There may be a way to do it with a my.cnf file, but I am not sure how to get the file to execute and override the default.
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Fri Jan 15, 2010 8:15 am    Post subject: Reply with quote

Do you have try to use the function mysql_options() ?

http://dev.mysql.com/doc/refman/5.1/en/mysql-options.html

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> MySQL for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group