Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我从 mysql 转储数据库时,有没有办法可以删除行ENGINE=MyISAM AUTO_INCREMENT=528 ...,LOCK TABLES "controller_actions" WRITE;和UNLOCK TABLES;. 打开 db 文件并删除这些行将非常乏味,因为数据库如此庞大。
ENGINE=MyISAM AUTO_INCREMENT=528 ...
LOCK TABLES "controller_actions" WRITE;
UNLOCK TABLES;
任何帮助表示赞赏
我不确定您为什么要删除ENGINEandAUTO_INCREMENT选项;据我所知,没有办法只删除这些选项。如果要删除整个CREATE TABLE语句,请使用该--no-create-info选项。要阻止LOCK TABLEandUNLOCK TABLE命令,请使用--skip-add-locks.
ENGINE
AUTO_INCREMENT
CREATE TABLE
--no-create-info
LOCK TABLE
UNLOCK TABLE
--skip-add-locks