I have some C++ applications that access our MySQL database via unixODBC on Ubuntu 10.04.
Once every few weeks for the last several weeks, I've seen this error appear in our error logs:
[unixODBC][MySQL][ODBC 3.51 Driver]Lost connection to MySQL server at 'reading initial communication packet', system error: 9
It originates from the ODBC library I use in my C++ code, and apparently comes from the ODBC driver.
Otherwise, the system works fine, processing thousands of queries a day. Can anyone shed light on what this might indicate, how to diagnose, what to check next?
Does anyone know where exactly this error code originates from and how I might look up what "9" means?
Edit: I will also add this is a local server, i.e., the MySQL server is running on the same machine as the C++ code.