Re: wait_timeout help
Linux Redhat ASEL 4.0 On 11/8/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi Actually I don't get any idle processes listed.. but have came across such mails.. On which platform you are running mysql? I guess this might be: If Windows, the server will drop the connection probably because of 'wait_timeout' expired. For others, the mysql gets reconnected with 'reconnect flag' set to 1 in the MySQL structure... Thanks ViSolve DB Team - Original Message - *From:* Sayed Hadi Rastgou Haghi <[EMAIL PROTECTED]> *To:* Visolve DB Team <[EMAIL PROTECTED]> *Cc:* mysql@lists.mysql.com *Sent:* Wednesday, November 08, 2006 11:51 AM *Subject:* Re: wait_timeout help Hi I set the wait_timeout in my.cnf. Sometimes it works well and there is no idle process 120 seconds time. But sometimes there are idle processes with 1900s time. What the reason can be? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: > > Hi > > According to the VARIABLE "wait_timeout" [default: 28800 seconds] a > running MySQL daemon clears up idle connections if their > "idle period" > "wait_timeout".so the sleeping threads will be > automatically cleared if the time exceeds 'wait_timeout' variable value. > > 'wait_timeout' variable : The number of seconds the server waits for > activity on a non-interactive connection before closing it. This timeout > applies only to TCP/IP connections, not to connections made via Unix socket > files, named pipes, or shared memory. > 'interactive_timeout' variable's value or wait_timeout variables values > -depends on the type of client (as defined by the CLIENT_INTERACTIVE connect > option to mysql_real_connect()) > > Thanks > ViSolve DB Team. > > - Original Message - > *From:* Sayed Hadi Rastgou Haghi <[EMAIL PROTECTED]> > *To:* Visolve DB Team <[EMAIL PROTECTED]> > *Cc:* mysql@lists.mysql.com > *Sent:* Tuesday, November 07, 2006 4:12 PM > *Subject:* Re: wait_timeout help > > Thanks again > I have some questions that may help me explain my problem well. > > 1- What's this mean: > mysql> SHOW PROCESSLIS; > +--+---+--++---+-++-+ > > | Id | User | Host |db | Command | Time | State | > Info | > > +--+---+--++---+-+-++ > |1 | usr | myhost:36336 | mydb | Sleep | 2587 | | > NULL | > | 11 | usr | myhost:36341 | mydb | Sleep | 2587 | | > NULL | > | 12 | usr | myhost:36348 | mydb | Sleep | 2587 | | > NULL | > | 3732| usr | myhost:43940 | mydb | Sleep | 2587 | | > NULL | > > +--+---+--++---+-+-++ > > Are these processes idle? > If yes why MySQL doesn't kill them? > > > 2- If I set wait_timeout variable, will they be killed on that time? > 3- If I set interactive_timeout, what will happen to queries that take > time longer than interactive_timeout? > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > Try command line option, like > > > > mysql >set @@session.wait_timeout=15; > > mysql> show variables; > > > > > > Thanks > > Visolve DB Team. > > - Original Message - > > From: "Sayed Hadi Rastgou Haghi" < [EMAIL PROTECTED]> > > To: "Visolve DB Team" <[EMAIL PROTECTED]> > > Cc: < mysql@lists.mysql.com> > > Sent: Tuesday, November 07, 2006 3:21 PM > > Subject: Re: wait_timeout help > > > > > > > Thanks > > > But this sets. GLOBAL wait_timeout variable. > > > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; > > > > > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: > > >> > > >> Hi > > >> > > >> specify it in the .cnf file in the mysqld options: wait_timeout=x > > > > >> or specify it at the command line : set wait_timeout=x > > >> or start mysqld with --wait_timeout=x along with other options. > > >> > > >> Thanks > > >> ViSolve DB Team > > >> - Original Message - > > >> From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> > > >> To: > > >> Sent: Tuesday, November 07, 2006 2:08 PM > > >> Subject: wait_timeout help &g
Re: wait_timeout help
Hi Actually I don't get any idle processes listed.. but have came across such mails.. On which platform you are running mysql? I guess this might be: If Windows, the server will drop the connection probably because of 'wait_timeout' expired. For others, the mysql gets reconnected with 'reconnect flag' set to 1 in the MySQL structure... Thanks ViSolve DB Team - Original Message - From: Sayed Hadi Rastgou Haghi To: Visolve DB Team Cc: mysql@lists.mysql.com Sent: Wednesday, November 08, 2006 11:51 AM Subject: Re: wait_timeout help Hi I set the wait_timeout in my.cnf. Sometimes it works well and there is no idle process 120 seconds time. But sometimes there are idle processes with 1900s time. What the reason can be? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi According to the VARIABLE "wait_timeout" [default: 28800 seconds] a running MySQL daemon clears up idle connections if their "idle period" > "wait_timeout".so the sleeping threads will be automatically cleared if the time exceeds 'wait_timeout' variable value. 'wait_timeout' variable : The number of seconds the server waits for activity on a non-interactive connection before closing it. This timeout applies only to TCP/IP connections, not to connections made via Unix socket files, named pipes, or shared memory. 'interactive_timeout' variable's value or wait_timeout variables values -depends on the type of client (as defined by the CLIENT_INTERACTIVE connect option to mysql_real_connect()) Thanks ViSolve DB Team. - Original Message - From: Sayed Hadi Rastgou Haghi To: Visolve DB Team Cc: mysql@lists.mysql.com Sent: Tuesday, November 07, 2006 4:12 PM Subject: Re: wait_timeout help Thanks again I have some questions that may help me explain my problem well. 1- What's this mean: mysql> SHOW PROCESSLIS; +--+---+--++---+-++-+ | Id | User | Host |db | Command | Time | State | Info | +--+---+--++---+-+-++ |1 | usr | myhost:36336 | mydb | Sleep | 2587 | | NULL | | 11 | usr | myhost:36341 | mydb | Sleep | 2587 | | NULL | | 12 | usr | myhost:36348 | mydb | Sleep | 2587 | | NULL | | 3732| usr | myhost:43940 | mydb | Sleep | 2587 | | NULL | +--+---+--++---+-+-++ Are these processes idle? If yes why MySQL doesn't kill them? 2- If I set wait_timeout variable, will they be killed on that time? 3- If I set interactive_timeout, what will happen to queries that take time longer than interactive_timeout? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi Try command line option, like mysql >set @@session.wait_timeout=15; mysql> show variables; Thanks Visolve DB Team. - Original Message - From: "Sayed Hadi Rastgou Haghi" < [EMAIL PROTECTED]> To: "Visolve DB Team" <[EMAIL PROTECTED]> Cc: < mysql@lists.mysql.com> Sent: Tuesday, November 07, 2006 3:21 PM Subject: Re: wait_timeout help > Thanks > But this sets. GLOBAL wait_timeout variable. > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> specify it in the .cnf file in the mysqld options: wait_timeout=x >> or specify it at the command line : set wait_timeout=x >> or start mysqld with --wait_timeout=x along with other options. >> >> Thanks >> ViSolve DB Team >> - Original Message - >> From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> >> To: >> Sent: Tuesday, November 07, 2006 2:08 PM >> Subject: wait_timeout help >> >> >> > Dear All, >> > >> > I want to set wait_timeout variable on mysqld startup. >> > Is there any way to do that? >> > >> > -- >> > Sincerely, >> > Hadi Rastgou >> > A Google Account is the key that unlocks the world of Goo
Re: wait_timeout help
Hi I set the wait_timeout in my.cnf. Sometimes it works well and there is no idle process 120 seconds time. But sometimes there are idle processes with 1900s time. What the reason can be? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi According to the VARIABLE "wait_timeout" [default: 28800 seconds] a running MySQL daemon clears up idle connections if their "idle period" > "wait_timeout".so the sleeping threads will be automatically cleared if the time exceeds 'wait_timeout' variable value. 'wait_timeout' variable : The number of seconds the server waits for activity on a non-interactive connection before closing it. This timeout applies only to TCP/IP connections, not to connections made via Unix socket files, named pipes, or shared memory. 'interactive_timeout' variable's value or wait_timeout variables values -depends on the type of client (as defined by the CLIENT_INTERACTIVE connect option to mysql_real_connect()) Thanks ViSolve DB Team. - Original Message - *From:* Sayed Hadi Rastgou Haghi <[EMAIL PROTECTED]> *To:* Visolve DB Team <[EMAIL PROTECTED]> *Cc:* mysql@lists.mysql.com *Sent:* Tuesday, November 07, 2006 4:12 PM *Subject:* Re: wait_timeout help Thanks again I have some questions that may help me explain my problem well. 1- What's this mean: mysql> SHOW PROCESSLIS; +--+---+--++---+-++-+ | Id | User | Host |db | Command | Time | State | Info | +--+---+--++---+-+-++ |1 | usr | myhost:36336 | mydb | Sleep | 2587 | | NULL | | 11 | usr | myhost:36341 | mydb | Sleep | 2587 | | NULL | | 12 | usr | myhost:36348 | mydb | Sleep | 2587 | | NULL | | 3732| usr | myhost:43940 | mydb | Sleep | 2587 | | NULL | +--+---+--++---+-+-++ Are these processes idle? If yes why MySQL doesn't kill them? 2- If I set wait_timeout variable, will they be killed on that time? 3- If I set interactive_timeout, what will happen to queries that take time longer than interactive_timeout? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: > > Hi > > Try command line option, like > > mysql >set @@session.wait_timeout=15; > mysql> show variables; > > > Thanks > Visolve DB Team. > - Original Message - > From: "Sayed Hadi Rastgou Haghi" < [EMAIL PROTECTED]> > To: "Visolve DB Team" <[EMAIL PROTECTED]> > Cc: < mysql@lists.mysql.com> > Sent: Tuesday, November 07, 2006 3:21 PM > Subject: Re: wait_timeout help > > > > Thanks > > But this sets. GLOBAL wait_timeout variable. > > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; > > > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: > >> > >> Hi > >> > >> specify it in the .cnf file in the mysqld options: wait_timeout=x > >> or specify it at the command line : set wait_timeout=x > >> or start mysqld with --wait_timeout=x along with other options. > >> > >> Thanks > >> ViSolve DB Team > >> - Original Message - > >> From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> > >> To: > >> Sent: Tuesday, November 07, 2006 2:08 PM > >> Subject: wait_timeout help > >> > >> > >> > Dear All, > >> > > >> > I want to set wait_timeout variable on mysqld startup. > >> > Is there any way to do that? > >> > > >> > -- > >> > Sincerely, > >> > Hadi Rastgou > >> > A Google Account is the key that unlocks the world of Google. > >> > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1<http://www.spreadfirefox.com/?q=affiliates&id=0&t=1> > "> > >> > Get > >> > FireFox! > >> > > >> > >> > > > > > > -- > > Sincerely, > > Hadi Rastgou > > A Google Account is the key that unlocks the world of Google. > > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1<http://www.spreadfirefox.com/?q=affiliates&id=0&t=1> > "> > > Get > > FireFox! > > > > -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1<http://www.spreadfirefox.com/?q=affiliates&id=0&t=1>"> Get FireFox! -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox!
Re: wait_timeout help
Hi According to the VARIABLE "wait_timeout" [default: 28800 seconds] a running MySQL daemon clears up idle connections if their "idle period" > "wait_timeout".so the sleeping threads will be automatically cleared if the time exceeds 'wait_timeout' variable value. 'wait_timeout' variable : The number of seconds the server waits for activity on a non-interactive connection before closing it. This timeout applies only to TCP/IP connections, not to connections made via Unix socket files, named pipes, or shared memory. 'interactive_timeout' variable's value or wait_timeout variables values -depends on the type of client (as defined by the CLIENT_INTERACTIVE connect option to mysql_real_connect()) Thanks ViSolve DB Team. - Original Message - From: Sayed Hadi Rastgou Haghi To: Visolve DB Team Cc: mysql@lists.mysql.com Sent: Tuesday, November 07, 2006 4:12 PM Subject: Re: wait_timeout help Thanks again I have some questions that may help me explain my problem well. 1- What's this mean: mysql> SHOW PROCESSLIS; +--+---+--++---+-++-+ | Id | User | Host |db | Command | Time | State | Info | +--+---+--++---+-+-++ |1 | usr | myhost:36336 | mydb | Sleep | 2587 | | NULL | | 11 | usr | myhost:36341 | mydb | Sleep | 2587 | | NULL | | 12 | usr | myhost:36348 | mydb | Sleep | 2587 | | NULL | | 3732| usr | myhost:43940 | mydb | Sleep | 2587 | | NULL | +--+---+--++---+-+-++ Are these processes idle? If yes why MySQL doesn't kill them? 2- If I set wait_timeout variable, will they be killed on that time? 3- If I set interactive_timeout, what will happen to queries that take time longer than interactive_timeout? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi Try command line option, like mysql >set @@session.wait_timeout=15; mysql> show variables; Thanks Visolve DB Team. - Original Message - From: "Sayed Hadi Rastgou Haghi" < [EMAIL PROTECTED]> To: "Visolve DB Team" <[EMAIL PROTECTED]> Cc: < mysql@lists.mysql.com> Sent: Tuesday, November 07, 2006 3:21 PM Subject: Re: wait_timeout help > Thanks > But this sets. GLOBAL wait_timeout variable. > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> specify it in the .cnf file in the mysqld options: wait_timeout=x >> or specify it at the command line : set wait_timeout=x >> or start mysqld with --wait_timeout=x along with other options. >> >> Thanks >> ViSolve DB Team >> - Original Message - >> From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> >> To: >> Sent: Tuesday, November 07, 2006 2:08 PM >> Subject: wait_timeout help >> >> >> > Dear All, >> > >> > I want to set wait_timeout variable on mysqld startup. >> > Is there any way to do that? >> > >> > -- >> > Sincerely, >> > Hadi Rastgou >> > A Google Account is the key that unlocks the world of Google. >> > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> >> > Get >> > FireFox! >> > >> >> > > > -- > Sincerely, > Hadi Rastgou > A Google Account is the key that unlocks the world of Google. > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> > Get > FireFox! > -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox!
Re: wait_timeout help
Thanks again I have some questions that may help me explain my problem well. 1- What's this mean: mysql> SHOW PROCESSLIS; +--+---+--++---+-++-+ | Id | User | Host |db | Command | Time | State | Info | +--+---+--++---+-+-++ |1 | usr | myhost:36336 | mydb | Sleep | 2587 | | NULL | | 11 | usr | myhost:36341 | mydb | Sleep | 2587 | | NULL | | 12 | usr | myhost:36348 | mydb | Sleep | 2587 | | NULL | | 3732| usr | myhost:43940 | mydb | Sleep | 2587 | | NULL | +--+---+--++---+-+-++ Are these processes idle? If yes why MySQL doesn't kill them? 2- If I set wait_timeout variable, will they be killed on that time? 3- If I set interactive_timeout, what will happen to queries that take time longer than interactive_timeout? On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi Try command line option, like mysql >set @@session.wait_timeout=15; mysql> show variables; Thanks Visolve DB Team. - Original Message - From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> To: "Visolve DB Team" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, November 07, 2006 3:21 PM Subject: Re: wait_timeout help > Thanks > But this sets. GLOBAL wait_timeout variable. > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; > > On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> specify it in the .cnf file in the mysqld options: wait_timeout=x >> or specify it at the command line : set wait_timeout=x >> or start mysqld with --wait_timeout=x along with other options. >> >> Thanks >> ViSolve DB Team >> - Original Message - >> From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> >> To: >> Sent: Tuesday, November 07, 2006 2:08 PM >> Subject: wait_timeout help >> >> >> > Dear All, >> > >> > I want to set wait_timeout variable on mysqld startup. >> > Is there any way to do that? >> > >> > -- >> > Sincerely, >> > Hadi Rastgou >> > A Google Account is the key that unlocks the world of Google. >> > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 "> >> > Get >> > FireFox! >> > >> >> > > > -- > Sincerely, > Hadi Rastgou > A Google Account is the key that unlocks the world of Google. > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> > Get > FireFox! > -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox!
Re: wait_timeout help
Hi Try command line option, like mysql >set @@session.wait_timeout=15; mysql> show variables; Thanks Visolve DB Team. - Original Message - From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> To: "Visolve DB Team" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, November 07, 2006 3:21 PM Subject: Re: wait_timeout help Thanks But this sets. GLOBAL wait_timeout variable. Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi specify it in the .cnf file in the mysqld options: wait_timeout=x or specify it at the command line : set wait_timeout=x or start mysqld with --wait_timeout=x along with other options. Thanks ViSolve DB Team - Original Message - From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 07, 2006 2:08 PM Subject: wait_timeout help > Dear All, > > I want to set wait_timeout variable on mysqld startup. > Is there any way to do that? > > -- > Sincerely, > Hadi Rastgou > A Google Account is the key that unlocks the world of Google. > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> > Get > FireFox! > -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox! -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: wait_timeout help
On 2006-11-07 Sayed Hadi Rastgou Haghi wrote: > Thanks > But this sets. GLOBAL wait_timeout variable. > Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; Ah, yes, MySQL is very confusing about this special variable: You have to use "interactive_timeout = XXX" to change what is called "wait_timeout" in "SHOW VARIABLES". bye, -christian- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: wait_timeout help
Thanks But this sets. GLOBAL wait_timeout variable. Cab be seen by SHOW GLOBAL VARIABLES not by SHOW VARIABLES; On 11/7/06, Visolve DB Team <[EMAIL PROTECTED]> wrote: Hi specify it in the .cnf file in the mysqld options: wait_timeout=x or specify it at the command line : set wait_timeout=x or start mysqld with --wait_timeout=x along with other options. Thanks ViSolve DB Team - Original Message - From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 07, 2006 2:08 PM Subject: wait_timeout help > Dear All, > > I want to set wait_timeout variable on mysqld startup. > Is there any way to do that? > > -- > Sincerely, > Hadi Rastgou > A Google Account is the key that unlocks the world of Google. > http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> > Get > FireFox! > -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox!
Re: wait_timeout help
Hi specify it in the .cnf file in the mysqld options: wait_timeout=x or specify it at the command line : set wait_timeout=x or start mysqld with --wait_timeout=x along with other options. Thanks ViSolve DB Team - Original Message - From: "Sayed Hadi Rastgou Haghi" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 07, 2006 2:08 PM Subject: wait_timeout help Dear All, I want to set wait_timeout variable on mysqld startup. Is there any way to do that? -- Sincerely, Hadi Rastgou A Google Account is the key that unlocks the world of Google. http://www.spreadfirefox.com/?q=affiliates&id=0&t=1";> Get FireFox! -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Re: wait_timeout help
On 2006-11-07 Sayed Hadi Rastgou Haghi wrote: > Dear All, > > I want to set wait_timeout variable on mysqld startup. > Is there any way to do that? Put "wait_timeout = XXX" into the "[mysqld]" stanza of your /etc/mysql/my.cnf (or wherever your global config file is). bye, -christian- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]