ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**1.共享读锁** 加锁 `lock table 表名 read;` 解锁 `unlock tables` ``` show variables like '%table%'; ``` ``` show status like '%table%'; table_lock_waited 变量查看锁挡住的操作数量 ``` **独占写锁** ``` lock tables 表名 write; ``` **并发插入** ``` show variables like 'concurrent_insert'; set global concurrent_insert=2; lock table 表名 read local; ```