Solved

mysql remote access and long timeout time

Posted on 2013-11-18
2
492 Views
Last Modified: 2013-11-18
I have long queries to run.
I am looking for a remote mysql server that has a long timeout time.
I can not use localhost on my desktop computer because we need remote access.
Currently I am using godaddy hosting which times out after 3 minutes.
0
Comment
Question by:rgb192
2 Comments
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 39656522
As long as each query finishes before the time-out, you should be fine. So if you had:

Query A: Takes 2 minutes to run
Query B: Takes 2 minutes to run
Query C: Takes 2 minutes and 30 seconds to run

...then you should be able to execute each one of them individually and it should work.

The only problem would be if any queries ran longer than the timeout (e.g. Query B took 3 minutes and 30 seconds to run), but you could try setting the session timeout. Just run this query to set it to 300 seconds (5 minutes):

SET @@SESSION.wait_timeout=300;

Typically the timeouts only happen when there's no activity for that period of time, but you can give it a try.
0
 

Author Closing Comment

by:rgb192
ID: 39656665
That would be the correct answer to the question but I think I am looking for 'database hosting'  (if this is a correct search term) because I getting no data returned using a query editor which means i am not ready for php yet.

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

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