Details
- 
    New Feature 
- 
    Status: Closed (View Workflow)
- 
    Critical 
- 
    Resolution: Fixed
Description
The feature introduces simplified workflow:
| FLUSH TABLES t1 FOR EXPORT; | 
| --copy_file $MYSQLD_DATADIR/test/t1.cfg $MYSQLD_DATADIR/test/t2.cfg | 
| --copy_file $MYSQLD_DATADIR/test/t1.frm $MYSQLD_DATADIR/test/t2.frm | 
| --copy_file $MYSQLD_DATADIR/test/t1.ibd $MYSQLD_DATADIR/test/t2.ibd | 
| UNLOCK TABLES; | 
| ALTER TABLE t2 IMPORT TABLESPACE; | 
Previously, CREATE TABLE and ALTER TABLEā¦DISCARD TABLESPACE had to be executed, and the exact table definition from an existing .frm file could not be reused. This simplification addresses MDEV-15225.
ha_innodb::open() should check for .ibd and .cfg files before actually opening a table.
Attachments
Issue Links
- blocks
- 
                    MDEV-11658 Simpler, faster IMPORT of InnoDB tables -         
- Open
 
-         
- 
                    MDEV-15225 Can't import .ibd file with temporal type format differing from mysql56_temporal_format -         
- Closed
 
-         
- 
                    MDEV-18762 Support easy restore of partial backup -         
- Closed
 
-         
- is blocked by
- 
                    MDEV-31010 Q2 2023 release merge -         
- Closed
 
-         
- relates to
- 
                    MDEV-33226 ALTER TABLE IMPORT enhancement for Partitioned tables -         
- Open
 
-         
- 
                    MDEV-10568 Implement support for ALTER TABLE ... {DISCARD|IMPORT} PARTITION -         
- Open
 
-         
- 
                    MDEV-15225 Can't import .ibd file with temporal type format differing from mysql56_temporal_format -         
- Closed
 
-         
- 
                    MDEV-26155 Mangled data after IMPORT tablespace up till assert for DDL -         
- Open
 
-