Jump to content

MySQL and Access link


zq29

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!

Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.