简体   繁体   English

MySQL - >带有LARGE表问题的SQL Server迁移助手

[英]MySQL -> SQL Server Migration Assistant with LARGE table issue

I am trying to migrate my company's old MySQL database onto SQL Server 2008. 我正在尝试将我公司的旧MySQL数据库迁移到SQL Server 2008上。

I'm using the SQL Server Migration assistant for MySQL software and everything works great except for the large tables (some containing about 150 million + rows) - It creates the schema, etc and when I select to migrate the data I get it staying stuck at Migrating myTable > myTable with 0 of 159216578 rows processed - It stays that way for about 1-2 hours then crashes and says it couldn't create an error file. 我正在使用MySQL软件的SQL Server迁移助手,一切都很好,除了大表(一些包含大约1.5亿+行) - 它创建架构等,当我选择迁移数据时,我得到它保持卡住在Migrating myTable > myTable with 0 of 159216578 rows processed - 它保持这种状态大约1-2小时然后崩溃并说它无法创建错误文件。

Are there any things / settings I can change to make this work? 有什么东西/设置我可以改变来使这项工作? Is there a better way (I have access to the .frm , .MYD , .MYI files if there's something I can do that way too) - I'm open to anything so long as I get these tables migrated. 有没有更好的方法(我可以访问.frm.MYD.MYI文件,如果我也可以这样做的话) - 只要我迁移了这些表,我就会对任何事情持开放态度。

Thanks!! 谢谢!!

I think you want to export about 10 milion rows at a time (depending on the MySQL hardware) using something in the WHERE clause that will allow you to separate the data (ID, date, etc). 我想你想一次导出大约10万行(取决于MySQL的硬件),使用WHERE子句中的东西,它允许你分离数据(ID,日期等)。

SELECT * FROM Table1 WHERE ID BETWEEN x and y INTO OUTFILE 'C:\temp\data.csv';

You can use SQL Server Import/Export Wizard to get it into MSSQL. 您可以使用SQL Server导入/导出向导将其导入MSSQL。

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

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