Solved

ALL long queries on localhost

Posted on 2013-12-06
8
750 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 109

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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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 …
Creating and Managing Databases with phpMyAdmin in cPanel.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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