MySQL Forums
Forum List  »  Connector/C (libmysql)

Re: How to distinguish the response of Lost connection to MySQL server?
Posted by: hello okay
Date: May 06, 2021 12:35AM

mysql provide api to satisfy this.

int nSecond = 3;
mysql_options(m_pMySQL, MYSQL_OPT_READ_TIMEOUT, (char*)&nSecond);

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.