When InnoDB transportable tablespaces was
introduced in 5.6 it did not support partitions since it could be
accomplished in combination with EXCHANGE PARTITION. To make it easier to use
transportable tablespaces for partitioned tables we added support
for DISCARD/IMPORT TABLESPACE for partitioned
tables as well as single partitions in 5.7.4.To get a consistent
full copy of the tablespace files one use FLUSH TABLES <list of tables> FOR
EXPORT:
# Flush all dirty pages to the tablespaces and write a .cfg file per tablespace mysql> FLUSH TABLE …[Read more]