简体   繁体   English

将具有InnoDB和MyISAM表的MyISAM数据库迁移到新服务器

[英]Migrate MyISAM database with InnoDB and MyISAM tables to new server

我有一个包含MyISAM和InnoDB表的MyISAM数据库,我想将此数据库迁移到另一台服务器,对于MyISAM而言,只需复制.frm .MYI和.MYD即可,但是对于InnoDB表,如何将它们移至新服务器?

Assuming that the configuration and versions are identical, and that the source server is completely shut down, you can move the ibdata file and all of the *.frm and *.ibd files. 假设配置和版本相同,并且源服务器已完全关闭,则可以移动ibdata文件以及所有*.frm*.ibd文件。 But it isn't advised. 但是不建议这样做。

The portable way to move all (or some) of the databases is to dump them using mysqldump and restore them on the target using mysql . 移动所有(或某些)数据库的可移植方式是使用mysqldump转储它们,并使用mysql将它们还原到目标上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM