Page 1 of 1
Lost connection to MySQL server during query
Posted: Fri 29 Dec 2006 18:58
by kellyaa
I have a server running MySql 5.0.27 with a 10gb database and a 2gb database. Both databases use the MyISAM engine. Most queries against these databases take 2-3 minutes to complete, and work as expected in the MySQL Query Browser.
Any query I try to run using MySql Developer Studio 1.51.33 errors out with the message "Lost connection to MySQL server during query" after about 30 seconds. This happens even if I run from localhost. How can i fix this, is there a timeout setting that needs to be adjusted?
Posted: Tue 02 Jan 2007 07:34
by Duke
Unfortunately, current version does not allow to adjust timeout settings. Right now we are working over the new version that will include timeout settings.
Posted: Wed 31 Jan 2007 07:33
by cesarvegamx
Same problem here.
When is this version coming up ?
Still having problem in v2.0.48
Posted: Tue 26 Jun 2007 16:37
by kellyaa
I have the latest build and have my Execute Timeout set to "0" in the advanced connection properties. I'm still having exactly the same problem. If a query takes longer than a 60 seconds to run I receive the "Lost Connection to MySQL server during query" error, and the query stops.
I do not have any problems with long-running queries using the free MySQL GUI tools.
Posted: Mon 02 Jul 2007 06:42
by Duke
I have the latest build and have my Execute Timeout set to "0" in the advanced connection properties. I'm still having exactly the same problem.
The problem should not appear in this case. We'll check this out.
Posted: Wed 04 Jul 2007 12:18
by Duke
We've check this again. The problem does not appear. But let me give you a clue.
60 seconds is the value for net_write_timeout server parameter. This parameter is the number of seconds to wait for a block to be written to a connection before aborting the write. Actually, it's the server who cuts off the connection.
In MySQL Developer we increase this parameter for the session to 2 hours. Server version should be higher than 4.0.21.
To see actual value of net_write_timeout parameter perform
show local variables query.
Still having problem
Posted: Wed 18 Jul 2007 21:04
by kellyaa
My net_write_timeout is set to 72000 and I'm using MySql Server v5.0.41 (MyISAM tables), I'm still having the "lost connection to server during query" problem on any large query or script batch, when using MySql Developer Studio v2.0.49 (I don't use the vs integrated dev tools).
I can run the exact same script batch from the same client computer against the same server/database using MySql Query Browser without problem.
Lost connection to MySQL server during query
Posted: Thu 06 Sep 2007 07:32
by slobbering_dog
I have just downloaded the SQL Development studio - it looks good.
however, I hjave the exact same issue. Stored procedures won't run in CrLabs Dev Studio (version 2.xx something), but will run using MySQL browser and Navicat MySQL 8.0.
I like the CRLabs software better, but I can't run a single stored procedure.
Has there been an answer to this previous post ?
I am connecting from my laptop (Vista Business) using Developer Studio to my RH5_64bit server, MySQL 5.0.22 - 1gb network.
Best regards,
slobbering_dog
Re: Lost connection to MySQL server during query
Posted: Fri 07 Sep 2007 12:26
by Duke
Finally, we have located the problem and fixed it. In a week we'll release the new version with this fix.
Posted: Mon 17 Sep 2007 00:57
by slobbering_dog
I was just wondering if there has been any progres son the updated release as my trial period is running out and I would like to give this software a good trial before deciding whether or not to buy it.
Cheers,
Slobbering Dog
Posted: Wed 10 Oct 2007 04:25
by slobbering_dog
New version of Developer (2.10.68) seems to have cured the problem and I have bought the software.
Looks great so far !!
regards,
slobbering_dog
Still getting this issue
Posted: Wed 23 Apr 2008 14:48
by prashanthan
I am using MyDeveloper studio version 2.10.78 and still getting this issue.
Posted: Mon 05 May 2008 07:17
by Duke
Please, check timeout settings of your connection.
mysql server connection always gets lost
Posted: Mon 06 Jul 2009 03:05
by robertnzana
How do you set the timeout in the web.config?
Posted: Mon 06 Jul 2009 13:37
by Shalex
Here is an example that shows how the connection string with the Connection Timeout and Default Command Timeout parameters can be set in web.config.