Unlock table without restarting

2001-02-19 Thread Dorthe Luebbert

Hi,

how can I unlock a table/process with mysqladmin etc. without restarting
the server?

Thanx

 Dorthe

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Unlock table without restarting

2001-02-19 Thread Fred van Engen

On Mon, Feb 19, 2001 at 12:59:51PM +0100, Dorthe Luebbert wrote:
 Hi,
 
 how can I unlock a table/process with mysqladmin etc. without restarting
 the server?
 

If you want to unlock a table that is locked by a query then you will
need to kill the thread that executes the query. It's up to you to
decide if that's a 'safe' thing to do. It won't corrupt your tables
but if the query is an update or insert, only part of the updates may
have been performed.

You can find the thread with the 'show processlist' command and kill
it with 'kill' command. There are corresponding parameters to
mysqladmin for these commands.


Regards,

Fred.

-- 
Fred van Engen  XO Communications B.V.
email: [EMAIL PROTECTED] Televisieweg 2
tel: +31 36 5462400 1322 AC  Almere
fax: +31 36 5462424 The Netherlands

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php