简体   繁体   中英

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. 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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