in reply to Lost connection to MySQL server

By the way, is there a specific reason you're accessing MySQL using ODBC instead of DBD::MySQL?
Also, how much time passes between executing the query and getting the disconnection errormessage? Is this a timeout present in the ODBC-layer (since the server would normally not disconnect connections that are waiting for a query result)?