As doc states:
https://dev.mysql.com/doc/refman/5.7/en/innodb-page-compression.html
To disable page compression, set COMPRESSION=None using ALTER TABLE. Writes to the tablespace that occur after setting COMPRESSION=None no longer use page compression. To uncompress existing pages, you must rebuild the table using OPTIMIZE TABLE after setting COMPRESSION=None.
ALTER TABLE t1 COMPRESSION="None";
OPTIMZE TABLE t1;
With regular table there is no table rebuild:
mysql> alter table sbtest4 compression='none';
Query OK, 0 rows affected (0,01 sec)
Records: 0 Duplicates: 0 Warnings: 0
So the rebuild will be on optimize table run.
But if you want table rebuild each time when you run compression=’none’ you can add encryption=’N’ option
…[Read more]