Unix Technical Forum

hang up mysql shell

This is a discussion on hang up mysql shell within the MySQL General forum forums, part of the MySQL category; --> hello, When saying 'exit' in mysql shell,mysqld would release the lock which was made before. But if I do ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:49 AM
Jeff Pang
 
Posts: n/a
Default hang up mysql shell

hello,

When saying 'exit' in mysql shell,mysqld would release the lock which was made before.
But if I do 'ctrl+z' under linux to hang up mysql shell,would mysqld also release the lock or not?
Thank you.

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 € inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:50 AM
Eric Bergen
 
Posts: n/a
Default Re: hang up mysql shell

Jeff,

CTRL-Z in linux doesn't hang up mysql, it suspends it. mysqld releases
the locks because the connection was broken when you issue 'exit'.
When using ctrl-z the client process still exists and it's connections
still exist so the locks won't be released. To bring a process out of
suspension type 'fg' it will move back to the foreground. CTRL-D is
typically the exit shortcut.

On 7/16/07, Jeff Pang <pangj@arcor.de> wrote:
> hello,
>
> When saying 'exit' in mysql shell,mysqld would release the lock which was made before.
> But if I do 'ctrl+z' under linux to hang up mysql shell,would mysqld alsorelease the lock or not?
> Thank you.
>
> Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
> und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> nur 39,85 € inkl. DSL- und ISDN-Grundgebühr!
> http://www.arcor.de/rd/emf-dsl-2
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=e...gen@gmail..com
>
>



--
Eric Bergen
eric.bergen@provenscaling.com
http://www.provenscaling.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com