Jump to content


This topic is now archived and is closed to further replies.


MySQL and Access link

Recommended Posts

Hi guys,


I have a MySQL database on a web server, I am trying to query it with Microsoft Access on a local machine. I have installed the MySQL ODBC driver on my machine, and I can successfully connect to the database and view the tables and their contents, but when I link to them (in Access) so that my local install of Access can alter values in the online MySQL database on the server, I get the error message:


"ODBC --call failed. [MySQL][ODBC 3.51 Driver][mysqld-4.1.14]Lost connection to MySQL server during query (#2013)"


And sometimes, I get this error:


"ODBC --call failed. [MySQL][ODBC 3.51 Driver][mysqld-4.1.14]MySQL server has gone away (#2006)"


The second one is more common and happens when trying to view the linked table too. Any ideas on whats causing this, and any possible solutions?


Thank you for your time guys!

Share this post

Link to post
Share on other sites

After chatting to my host, and asking them to alter the MySQL config, I have come to the cuncusion that it was the MySQL setting 'wait_timeout' that was causing this, it was set at '5' on my server, I don't know what they have set it to now, but the default is something around the 28000 mark.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.