Solved

ALL long queries on localhost

Posted on 2013-12-06
8
732 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
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
 
LVL 108

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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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 26

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now