Using an ODBC connection to a mysql database, the connection times-out after a period of 8 hours (the default).
In order for my application to be resilient, it must recreate this connection to issue a prepared statement query.
Is it possible to issue a new database connection for a prepared statement?
Does it make sense to do so?
It appears like prepared statements are created on a connection basis.
The current solution is to :
- Reconnect
- Re-prepare the queries
- Execute query