Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

How do I get the session state (and then reconnect)? (4 replies)

$
0
0
Hello. How can I get the mysqlx::Session state using XDevApi for C++? Let's say the MySQL server has dropped the connection, how can I check it?

My client can work for several weeks without shutting down and sending queries. A few hours after starting and sending the query, I get an exception. As far as I understand, this is due to the "wait_timeout" property, which disconnect the session from the server. Actually, how do I check that there was a disconnection and then reconnect?

I didn't find any method in mysqlx::Session that could help me.

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>