Solved

ALL long queries on localhost

Posted on 2013-12-06
8
776 Views
Last Modified: 2013-12-07
Large query

Error Code: 2013. Lost connection to MySQL server during query
600.510 sec


I am using mysql on windows on localhost
using mysql workbench query editor

how can I extend query timeout

I do not wish to modify current query because
I am looking for an answer for all queries.
0
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39702518
Set net_read_timeout to higher value the current 600 seconds is a common setting, but if you need more then just increase it in the my.ini file.  You can probably also do it through the workbench, but I don't use the workbench, and I don't know the specific method of doing that.


Cd&
0
 

Author Comment

by:rgb192
ID: 39702568
Where would i find my.ini? I do not know what folder i installed mysql or which mysql (i have zend and wamp ) that i am accessing using workbench
0
 

Author Comment

by:rgb192
ID: 39703039
Finding my.ini is a related question

http://www.experts-exchange.com/Database/MySQL/Q_28312933.html

So once I find my.ini, I can respond to this question.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39703097
A query that runs for 600 seconds might have something wrong.  EXPLAIN SELECT might give you a hint about what MySQL is doing with its time.  See also this article:
http://www.experts-exchange.com/Database/MySQL/A_1250-3-Ways-to-Speed-Up-MySQL.html
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39703173
If you have wampserver installed, there should be an icon on the taskbar click it and select my.ini and it will open the ini in notepad.


Cd&
0
 

Author Comment

by:rgb192
ID: 39703188
note: this is xampp and not wamp.
C:\xampp\ does not exist in windows explorer (even with show hidden files and folders).
I have zend php framework, xampp, wamp installed

what is the option I change
0
 
LVL 27

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 39703196
I think you can modify the timeout even in UI in the Global Variables. I am not sure where you can find it in Workbench, try:

Edit->Preferences->SQL Editor tab
0
 

Author Closing Comment

by:rgb192
ID: 39703407
This is the correct answer extending the query timeout time.  I will keep on extending because there could be an error with the query but I know that I can eliminate all timeout times. Thanks
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question