| 1 |
# |
| 2 |
# Bug#26938297 - IMPORT OF COMPRESSED TABLE FAILS AND CRASHES THE SERVER |
| 3 |
# |
| 4 |
CREATE DATABASE testdb; |
| 5 |
USE testdb; |
| 6 |
CREATE TABLE t1 ( |
| 7 |
`col_1` char(255) DEFAULT NULL, |
| 8 |
`col_2` varchar(255) DEFAULT NULL, |
| 9 |
`col_3` longtext, |
| 10 |
`col_4` longtext, |
| 11 |
`col_5` longtext, |
| 12 |
`col_6` longtext, |
| 13 |
`col_7` longtext, |
| 14 |
`col_8` longtext, |
| 15 |
`col_9` longtext, |
| 16 |
`col_10` longtext, |
| 17 |
`col_11` int(11), |
| 18 |
PRIMARY KEY(col_11), |
| 19 |
KEY k1(col_1(10)) |
| 20 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 KEY_BLOCK_SIZE=1 STATS_PERSISTENT=0; |
| 21 |
Warnings: |
| 22 |
Warning 1681 Integer display width is deprecated and will be removed in a future release. |
| 23 |
FLUSH TABLES t1 FOR EXPORT; |
| 24 |
# Copying exported .ibd |
| 25 |
UNLOCK TABLES; |
| 26 |
ALTER TABLE t1 DISCARD TABLESPACE; |
| 27 |
# Copying exported .ibd to import |
| 28 |
ALTER TABLE t1 IMPORT TABLESPACE; |
| 29 |
ALTER TABLE t1 DROP INDEX k1; |
| 30 |
DROP TABLE t1; |
| 31 |
DROP DATABASE testdb; |