MySQL – How to Change Compression on Existing InnoDB Table

compressioninnodbMySQL

Is there any way to turn on compression for an existing table? I don't care if there's downtime for this.

The docs only mention setting compression when the table is created.

Best Answer

ALTER TABLE xxx ROW_FORMAT=COMPRESSED