Lost connection to MySQL server during query
Lost connection to MySQL server during query
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?
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?
-
- Posts: 37
- Joined: Tue 30 Jan 2007 07:43
Still having problem in v2.0.48
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.
I do not have any problems with long-running queries using the free MySQL GUI tools.
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.
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
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.
I can run the exact same script batch from the same client computer against the same server/database using MySql Query Browser without problem.
-
- Posts: 4
- Joined: Thu 06 Sep 2007 05:36
- Location: Adelaide, Australia
Lost connection to MySQL server during query
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
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
Finally, we have located the problem and fixed it. In a week we'll release the new version with this fix.
-
- Posts: 4
- Joined: Thu 06 Sep 2007 05:36
- Location: Adelaide, Australia
-
- Posts: 4
- Joined: Thu 06 Sep 2007 05:36
- Location: Adelaide, Australia
-
- Posts: 1
- Joined: Mon 21 Apr 2008 17:25
Still getting this issue
I am using MyDeveloper studio version 2.10.78 and still getting this issue.
-
- Posts: 23
- Joined: Fri 12 Sep 2008 05:07
mysql server connection always gets lost
How do you set the timeout in the web.config?
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.
Code: Select all