Changing storage engine rebuild table change file per table

suggest change

For 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents