Changing storage engine rebuild table change file per table
suggest changeFor example, if t1 is currently not an InnoDB table, this statement changes its storage engine to InnoDB:
ALTER TABLE t1 ENGINE = InnoDB;
If the table is already InnoDB, this will rebuild the table and its indexes and have an effect similar to OPTIMIZE TABLE. You may gain some disk space improvement.
If innodb_file_per_table is different from the value in effect when t1 was built, this converts the table to or from file-per-table storage. The variable applies only to InnoDB.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents