Hello,
i'm building a server application in C#.net which connects to a MySQL server via ODBC/Connector 5.1 .Net

If a execute a query it works but when i try to exectute a query after waiting a while (ex. 5 minutes) i get an error which says:
"The connection has been disabled.".

I'd like to have a persistant connection to the database but I still haven't found out how to do that, so i thought it might be wise to ask here now.

Mervin.

Recommended Answers

I don't have specific solution but try to ask in MySQL forum http://www.daniweb.com/forums/forum126.html or just something got to my mind is to open visual studio as administrator.

Jump to Post

All 5 Replies

Thanks for the idea,
I tried it but it didn't not work. (running vista ultimate 32 bit , service pack 2 as admin)

i get this error: ERROR [08S01] [MySQL][ODBC 5.1 Driver][mysqld-5.1.30]MySQL server has gone away the exception.message = "Connection has been disabled"

how could i make the connection persistent?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.