简体   繁体   中英

Sql Server to MySql Data Migration

I have been given the enviable task of migrating a legacy SQL Server 2000 database to MySql. The two databases have enitrely different structures. I only have to migrate data ie no stored procedures etc.

I have created a 'clean' MySql database ie an database with empty tables with the schema of the new system.

I am planning on using the MySql Migration toolkit to first convert the Sql Server database to MySql.

Then I want to pull the data from the old database to the new. I have broken down the database into conceptually independent sections that can be migrated independently. This is where i'm not sure what to do. Do I just have to write sql scripts to transfer? These scripts would contain big cursors to transfer the data eg I have a list of Organizations and users linked to the organizations. Should I write a cursor to insert each organization and users in turn into the new database or are there tools to help me do this?

Thanks in advance.

You could use SQL Server DTS. You'll need to install the ODBC Drivers for MySQL. This article explains the reverse (MySQL to SQL) but if you reverse the source and target the article explains what you need to do pretty well.

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