---
title: "MySQL 5.6中innodb的可传输表空间(transportable tablespace)"
author: "icbm"
date: "2014-03-03T18:01:38Z"
tags: []
categories: ["数据库"]
slug: "mysql-5-6-innodb-transportable-tablespace"
draft: false
lastmod: "2014-03-03T18:01:38Z"
id: 2025058
url: "https://icbm.iteye.com/blog/2025058"
---

目标端：
alter table t discard tablesapce;

源端：
flush tables t for export;

复制 t.ibd, t.cfg到目标端。

源端：
unlock tables;

目标端：
alter table t import tablespace;

参考地址：
14.2.5.5 Copying Tablespaces to Another Server (Transportable Tablespaces)
<http://dev.mysql.com/doc/refman/5.6/en/tablespace-copying.html>