I am trying to connect from qt 4.4.3 on linux to mysql server on windows . If the mysql server is down the open call get stuck for 3mins and 9 secs before it returns with status false.
How can I set the timeout for open call .
currently mysql variables are
show variables like '%timeout%';
'wait_timeout', | '28800'
'slave_net_timeout', | '3600'
'rpl_stop_slave_timeout', | '31536000'
'net_write_timeout', | '60'
'net_read_timeout', | '30'
'lock_wait_timeout', | '31536000'
'interactive_timeout', | '28800'
'innodb_rollback_on_timeout', | 'OFF'
'innodb_lock_wait_timeout', | '50'
'innodb_flush_log_at_timeout', | '1'
'delayed_insert_timeout', | '300'
'connect_timeout', | '10'
Bookmarks