简体   繁体   中英

Migrate big tables from MySql to MsSql

I have a big database around 46GB in Mysql format and I managed to convert all the database to MSsql except two tables, the biggest ones. When I try to migrate those 2 tables, one by one , after a while I get the error message "The connection has been disabled"

I encreased the timeout from SSMA option from 15 to 1440 and decreased the bash from 1000 to 500 and same thing, The tables have 52 mil rows and 110 milion rows with 1,5 GB and 6.5 GB.

I tried incremential version but I don't have a unique id to use

What can I do to migrate them

Thank You

You should be able to use SQL Server Integration Services (SSIS). You can create a dataflow that pulls from MYSql and dumps the Data into MSSQL.

You'll need to create a Data flow task that includes an OLE Database Source and connect it to an OLE Database Destination.

I had the same issue and fixed by using the following configuration described here in detail: MySql 5.6 to MSSql server 2014 migration : ExecuteReader requires an open and available Connection

Also, I have documented the whole MySQL to MSSQL migration process here: Migrate Data and Schema from MySQL to SQL Server

I had the same problem using SSMA. I managed to migrate 100+ million rows of a table with 40+ columns.

I assume you've done the configuration well. You need to ensure that there is no activity in the MSSQL database. No SELECTS over those tables and no any other activities.

Check out the two tables' structures to ensure they are fine. You can run the SSMA project only for those two tables.

Hope this helps.

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