Skip to content

全局锁

1
2
3
4
5
-- 手动加全局锁
FLUSH TABLES WITH READ LOCK;

-- 释放全局锁
UNLOCK TABLES;

表锁

行锁