LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2013, 06:19 AM   #1
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Rep: Reputation: Disabled
Mysql Connection Timeout for 8hrs


Hi,
Mysql connection timeout for 8hrs once. Everytime i need to start the mysql.

I have changed the configuration my.cnf file
vi /etc/mysql/my.cnf
Quote:
wait_timeout = 31536000
But still i getting the connection timeout issue.

Quote:
mysql> SHOW GLOBAL VARIABLES LIKE "%wait%";

| innodb_lock_wait_timeout | 50 |
| innodb_spin_wait_delay | 6 |
| lock_wait_timeout | 31536000 |
| performance_schema_events_waits_history_long_size | 10000 |
| performance_schema_events_waits_history_size | 10 |
| wait_timeout | 31536000
Please need suggestions
Thanks

Last edited by vignesh4sh; 02-27-2013 at 06:50 AM.
 
Old 02-27-2013, 06:46 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Timeout comes from what exactly?
a program (PHP script)?

Where is the mysql service|daemon located? Local machine?

You set the max value for wait_timeout, did you restart mysqld?
 
Old 02-27-2013, 07:18 AM   #3
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Thanks for reply,

Times out comes for tomcat application and php.
Mysql service running in server

I added wait_timeout = 31536000 in configuration file

Thanks
 
Old 02-27-2013, 02:13 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
did you restart mysqld?
 
Old 03-13-2013, 12:14 AM   #5
vignesh4sh
Member
 
Registered: Oct 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
I fixed the issue.I was not added interactive_timeout in configuration. so that i was getting that issue.

Quote:
sudo vi /etc/mysql/my.cnf

Add
wait_timeout = 31536000
interactive_timeout = 31536000
Restart the Mysql.
sudo service mysql restart

To check the timeout in mysql

Quote:
mysql -u root -p

mysql > SHOW VARAIBLES LIKE %wait%;

It shows like wait_timeout = 31536000

similary
mysql > SHOW GLOBAL VARAIBLES LIKE %wait%;
mysql > SHOW SESSION VARAIBLES LIKE %wait%;
Thanks
 
Old 03-13-2013, 06:09 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
another symptom of http://www.linuxquestions.org/questi...rd-4175451572/ ?

---------- Post added 03-13-13 at 07:10 AM ----------

n/m then. good job fixing it!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[mysql/perl] Connection Timeout? incidenta5 Programming 2 05-15-2008 05:08 AM
Internet connection timeout on Fedora Core 5 using USB connection mike1111 Linux - Networking 0 07-23-2006 09:44 PM
MySQL - Timeout error occurred trying to start MySQL Daemon. stuartornum Linux - Software 3 02-26-2006 12:54 PM
90 second timeout on new connection mikewelter Linux - General 1 10-08-2003 05:18 PM
Connection Timeout Nezar Linux - Networking 1 07-01-2001 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration