Page 1 of 1

MYSQl Server Timeout

Posted: Tue 14 Mar 2006 07:44
by vincentfitzg
I have an application that timeouts on the server side, but the MySQLConnection.state remains open. Is there a way to know when the server has closed the connection so that i can reconnect automatically

Thanks!

Posted: Tue 14 Mar 2006 09:22
by Alexey
Use Ping() method of the MySqlConnection component to determine whether connection to MySQL server is valid.