MySQL 5.6-innodb import Improvement

Source: Internet
Author: User

MySQL 5.6-innodb import Improvement

Before MySQL 5.6, the idb file for importing a single innodb table must be aligned with the tablespace id. If the tablespace id is inconsistent, you need to increase the tablespace id by creating a new table in the new database, so that the tablespace id is aligned.

Versions later than version 5.6

Alter table... import tablespace

You do not need to align the tablespace id.

Alter table... for export

5.6 added the above command to keep exported idb files in the same state and generate the file. cfg suffix file. When we need to copy a single table, directly copy the. frm/. idb/. cfg file and then execute

Alter table... import tablespace

You can import.

After 5.6.8, you can directly copy the idb file and structure file without generating the cfg file! However, the following alarm is generated:

Warning Code: 1810

InnoDB: IO Read error: (2, No such file or directory) Error opening './test/log_table_cube.cfg', will attempt to import without schema verification

Note: after the table is locked with for export, remember to unlock tables after the replication to release the lock!

Startup, shutdown, and restoration of the InnoDB Storage Engine

MySQL InnoDB independent tablespace Configuration

Architecture of MySQL Server layer and InnoDB Engine Layer

InnoDB deadlock Case Analysis

MySQL Innodb independent tablespace Configuration

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.