Optimizing MySQL Import (Converting a Verbose SQL Dump to a Speedy One / use extended-inserts)
问题 We are using mysqldump with the options --complete-insert --skip-extended-insert to create database dumps that are kept in VCS. We use these options (and the VCS) to have the possibility to easily compare different database versions. Now importing of the dump takes quite a while because there are - of course - single inserts per database row. Is there an easy way to convert such a verbose dump to one with a single insert per table? Does anyone maybe already have a some script at hand? 回答1: I