MySQL ODBC error "server has gone away"

Posted by digitala on Stack Overflow See other posts from Stack Overflow or by digitala
Published on 2010-10-20T09:01:32Z Indexed on 2010/12/24 0:54 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

Occasionally we're seeing an error from ASP pages:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][MyODBC 5.00.11][MySQL] 2006 MySQL server has gone away

We're handling it the best way we can in ASP but it still crops up. I think it's more to do with the MySQL ODBC driver than the ASP code. We never see this with PHP code we also have running under the same IIS server, however PHP re-connects each time it is ran, whereas I believe the ODBC driver connects once and stays connected.

I've checked the settings in the driver but there doesn't seem to be anything I can change to help mitigate the problem.

Can anyone explain why this is happening and how to reduce the number of times it happens?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about iis