Lost connection to MySQL server during query
Posted: Sun 16 Jan 2005 10:59
Hi there
I'm developing a web app using mysql 4.1 and corelab 2.7, .NET framework 1.1.
I use components (effectively) that maintain connections to the database. The connections are religiously closed.
Whenever the mysql server is restarted (by choice or accident), and the ASP process is not, the following exception is thrown:
Lost connection to MySQL server during query.
I've tried catching the exception, disposing the connection, reinstantiating, etc., but the only solution seems to be restarting the asp process (not ideal).
Any solutions?
Thanks in advance
Ben
I'm developing a web app using mysql 4.1 and corelab 2.7, .NET framework 1.1.
I use components (effectively) that maintain connections to the database. The connections are religiously closed.
Whenever the mysql server is restarted (by choice or accident), and the ASP process is not, the following exception is thrown:
Lost connection to MySQL server during query.
I've tried catching the exception, disposing the connection, reinstantiating, etc., but the only solution seems to be restarting the asp process (not ideal).
Any solutions?
Thanks in advance
Ben