简体   繁体   中英

Convert SQL Server 2008 to MySQL

Is there a standard way, now that the MySQL migration toolkit is no longer supported, to transition a SQL Server database to MySQL.

I've tried running older versions of the Migration tool, but I keep getting java RE issues. I installed JRE 5.0u8, but am still getting weird java issues (I suspect just due to the software not being updated).

I also tried exporting the data as CSV's, but SQL Server keeps spitting out ill-formed CSV's that MySQL can't import, and I have no idea why. Just get duplicate primary key errors, even though when I grep the "bad" key, there is only one occurrence of it in the file. And yes, I truncated the table before trying to import.

MySQL Migration tool is a old tool, but it can work. You can use it to create a file with your result SQL ( CREATE TABLE and INSERT s), and after export to file (not live migration), you can fix manualy some errors in the result.

Ugly.

It took some time, but eventually the csv method worked for me. SQL Server was outputting some weird characters, I just had to track those down.

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