Flush tables with read lock (FTWRL)全局锁就是对整个数据库实例加锁
mysql
·
一:加全局读锁命令
FLUSH TABLE WITH READ LOCK;
二:执行新增语句
报错了
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUES3,"语文")' at line 1, Time: 0.003000s
三:执行释放全局锁命令
UNLOCK TABLES;
四:再次执行新增语句
可以看到可以执行
更多推荐
已为社区贡献11条内容
所有评论(0)