Logo

#

语法描述类型
SHOW DIST LOCKS查看锁RQL
UNLOCK DIST LOCK lock_key解锁RAL

1. 查看锁 #

  mysql> SHOW DIST LOCKS;
  +------------+---------------------------------+
  | lock_level | lock_key                        |
  +------------+---------------------------------+
  | database   | /lock/database/locks/encrypt_db |
  +------------+---------------------------------+
  1 row in set (0.01 sec)

输出说明

  • lock_level:锁级别 database库、table表
  • lock_key:锁的对象

输出说明

说明
lock_level锁级别 database库、table表
lock_key锁的对象

2. 解锁 #

UNLOCK DIST LOCK lock_key

示例

UNLOCK DIST LOCK '/lock/database/locks/encrypt_db';