目标端:
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)
[url]http://dev.mysql.com/doc/refman/5.6/en/tablespace-copying.html[/url]
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)
[url]http://dev.mysql.com/doc/refman/5.6/en/tablespace-copying.html[/url]
本文介绍了一种MySQL数据库中表空间跨服务器迁移的方法。包括源端导出表空间(flush tables for export)、复制.ibd及.cfg文件至目标服务器、以及在目标服务器上导入表空间(alter table import tablespace)等步骤。
187

被折叠的 条评论
为什么被折叠?



