Page 1 of 1

connection problem

Posted: Mon 28 Nov 2005 02:40
Hi ,
I am using MysqlDirect to connect remote Mysql server in My C# application but after 4-5 min I get disconnected and get this error message:
Lost connection to MySQL server during query

does anyone knows how to solve this problem.
thanks

Posted: Mon 28 Nov 2005 03:37
I solved the problem ,

if (maincss.dataHandler.getConnction().Ping()==false)
{

}


use ping to check the connection and recreate the connection ,
that is the solution.

Posted: Mon 12 Dec 2005 19:29
by rvr
But what's the reason you got disconnected in the first place?

RVR

Posted: Wed 14 Dec 2005 14:11
by Serious
This issue can be caused by some network problems or by server configuration.