一:加全局读锁命令
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;
四:再次执行新增语句
可以看到可以执行