Hello.<div><br></div><div>I need some explanation of how to do persistent connection to MySQL database and restore it if it has broken.</div><div><br></div><div>In my test project I have created TMySQL51Connection component with KeepConnection property set to True </div>
<div>and additionaly before making any database operations I check connection availability like below:</div><div><br></div><div><div> if not dm.mysql.Connected then</div><div> dm.mysql.Connected := True;</div><div><br>
</div></div><div>But sometimes I anyway get connection error with the fact that MySQL server is present and available in network.</div>