查看表上加过的锁
SHOW OPEN TABLES
手动增加表锁
LOCK TABLE actor read,address write # actor表添加读锁,address添加写锁
手动解锁:
UNLOCK TABLES
查看MySQL事务默认隔离级别:
SHOW VARIABLES LIKE 'tx_isolation'tx_isolation REPEATABLE-READ # 可重复读
设置不自动提交:
SET AUTOCOMMIT=0;
未完待续...