MySQL Forums
Forum List  »  Connector/C (libmysql)

How to distinguish the response of Lost connection to MySQL server?
Posted by: hello okay
Date: May 05, 2021 09:28PM

If mysql connection doesn't interact with mysql long time, then using libmysql api will lead to Lost connection to MySQL server error?
But if i set mysql_options with MYSQL_OPT_READ_TIMEOUT and execute a time consuming query, it will report the same Lost connection to MySQL server error.

Then the question is how to distinguish these different cases?

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.