Bug #12745 | Graceful Reconnection handling | ||
---|---|---|---|
Submitted: | 23 Aug 2005 4:13 | Modified: | 14 Jun 2013 16:57 |
Reporter: | Oliver Smith | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 4.1.13 | OS: | Any (All) |
Assigned to: | Matthew Lord | CPU Architecture: | Any |
[23 Aug 2005 4:13]
Oliver Smith
[23 Aug 2005 4:15]
Oliver Smith
The suggested code snippet isn't as clear as I meant it to be. In short - instead of needing to call mysql_query twice, after the server has been restarted the next mysql_query I perform won't tell me CR_SERVER_LOST instead it will try to reconnect and issue the query after reconnecting before returning to me. Obviously it would be nice to be able to specify how long to try reconnecting for too. :)
[14 Jun 2013 16:57]
Matthew Lord
Hi Oliver, Thank you for the feature request, and for your help in making MySQL even better! I'm closing this old feature request for now, as the auto-reconnect feature has been disabled by default since 5.1: http://dev.mysql.com/doc/refman/5.7/en/auto-reconnect.html If you have a specific feature request that still applies to 5.6 and 5.7, please let me know. Regarding "graceful" or transparent reconnect, this is not currently an option because all context is lost when re-connecting (user variables, session values, temp tables, etc.). Retaining the connection context may be possible in the future, and then we can implement something like this. Thanks again!