ERROR 1100 (HY000): Table 'api_category' was not locked with
mysql> show create table api_category;
ERROR 1100 (HY000): Table 'api_category' was not locked with LOCK TABLES
字面意思:表“api_category”未用锁表锁定
两个命令解决:
LOCK TABLES `api_category` WRITE; #给表加锁
UNLOCK TABLES; #给表解锁
赞赏码
![](https://files.cnblogs.com/files/lxwphp/zhifubao2.bmp)
![](https://files.cnblogs.com/files/lxwphp/weixin.bmp)
非学,无以致疑;非问,无以广识