| 1 |
set global innodb_compression_level = 0; |
| 2 |
CREATE DATABASE d1; |
| 3 |
CREATE TABLE d1.t1 (f1 longblob) row_format=compressed; |
| 4 |
INSERT INTO d1.t1 VALUES (repeat('x', 11000000)); |
| 5 |
FLUSH TABLES d1.t1 FOR EXPORT; |
| 6 |
backup: t1 |
| 7 |
UNLOCK TABLES; |
| 8 |
drop table d1.t1; |
| 9 |
CREATE TABLE d1.t1 (f1 longblob) row_format=compressed; |
| 10 |
ALTER TABLE d1.t1 DISCARD TABLESPACE; |
| 11 |
restore: t1 .ibd and .cfg files |
| 12 |
ALTER TABLE d1.t1 IMPORT TABLESPACE; |
| 13 |
drop table d1.t1; |
| 14 |
DROP DATABASE d1; |
| 15 |
unlink: t1.ibd |
| 16 |
unlink: t1.cfg |
| 17 |
set global innodb_compression_level = default; |