Re: Handling death of mysqld

From: Axel Schwenke <axel.schwenke_at_gmx.de>
Date: Tue, 23 Jan 2018 22:27:58 +0100
Message-ID: <p489cv$rho$1_at_dont-email.me>


[Quoted] On 23.01.2018 22:01, The Natural Philosopher wrote:
> This one caught mne out during a routine upograde of the mysql server - the
> server was killed and restarted.
>
> One of my programs failed to handle this gracefully

> I would have assumed that the
> underlying C libraries would reconnect to the server

[Quoted] If your program uses libmysqlclient (aka Connector C) then it can reconnect automatically. This feature was enabled by default in the past but in 5.0.3 that changed to disabled. If it is enabled and the communication fails due to a network error, the client reconnects automatically.

https://dev.mysql.com/doc/refman/5.7/en/c-api-auto-reconnect.html Received on Tue Jan 23 2018 - 22:27:58 CET

Original text of this message