MYSQl Server Timeout

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
vincentfitzg
Posts: 10
Joined: Wed 27 Jul 2005 11:36

MYSQl Server Timeout

Post by vincentfitzg » Tue 14 Mar 2006 07:44

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!

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 14 Mar 2006 09:22

Use Ping() method of the MySqlConnection component to determine whether connection to MySQL server is valid.

Post Reply