How to migrate SQL Server database to MySQL? [closed]

萝らか妹 提交于 2019-11-26 05:37:35

问题


I have a SQL Server database with lots of data and an empty MySQL database. Now I want to copy all data of SQL Server database (including the database schema) to the MySQL database.

I thought about using raw SQL dump, but SQL Server\'s SQL syntax is not same as MySQL.

And I have googled some database migration tool, such as south (only for django), simple-db-migration (only for one type of database, maybe PostreSQL?) and SQLAlchemy (I haven\'t finished learning it, just feeling it somewhat clunky).

What tool can I use to do this migration?


回答1:


I'm usually using opendbcopy for these kind of jobs ...




回答2:


This question has been asked several times on stackoverflow. you can check the following links

How to export MS SQL database to MYSQL?

How to convert Mssql database to Mysql Database

Please check these links I hope they will be useful to you..




回答3:


I tried this tool once http://dbconvert.com/convert-mssql-to-mysql-pro.php , but you have to pay for the full version. Of course you can write your own migration script e.g. in PHP. On Windows it will be easy to connect to MSSQL server, from a Linux machine you have to use ODBC and that is sometimes a bit messy to install and configure.



来源:https://stackoverflow.com/questions/8019144/how-to-migrate-sql-server-database-to-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!