Unlocking tables if thread is lost

后端 未结 3 631
悲哀的现实
悲哀的现实 2020-12-22 15:40

http://dev.mysql.com/doc/refman/5.0/en/internal-locking.html

The following is the extract from the documentation.

mysql> LOCK TABLES real_table WR         


        
3条回答
  •  星月不相逢
    2020-12-22 16:18

    how will I know that some tables are locked?

    You can use SHOW OPEN TABLES command to view locked tables.

    how do I unlock tables manually?

    If you know the session ID that locked tables - 'SELECT CONNECTION_ID()', then you can run KILL command to terminate session and unlock tables.

提交回复
热议问题