I notice mysqldump always put the command ALTER after INSERT.
CREATE TABLE ...;
INSERT table ....;
ALTER TABLE ...;
Is it possible to change the sequence to ALTER table first?
CREATE TABLE ...;
ALTER TABLE ...;
INSERT table ....;
When restoring data, this is needed as ALTER could be very slow with large tables with many records. Sometimes it could take more than 10 minutes to ALTER table.