[Lazarus] TMySQL51Connection: Keep connection alive
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Wed Dec 5 15:31:29 CET 2012
On Wed, 5 Dec 2012, Andrey Smyntyna wrote:
> Hello.
>
> I need some explanation of how to do persistent connection to MySQL
> database and restore it if it has broken.
>
> In my test project I have created TMySQL51Connection component with
> KeepConnection property set to True
> and additionaly before making any database operations I check connection
> availability like below:
>
> if not dm.mysql.Connected then
> dm.mysql.Connected := True;
>
> But sometimes I anyway get connection error with the fact that MySQL server
> is present and available in network.
As far as I know, the 'Keepconnection' is not functional.
Michael.
More information about the Lazarus
mailing list