如何将 SQL Server 数据库迁移到 MySQL?

2021-11-20 00:00:00 mysql database-migration sql-server

我有一个包含大量数据的 SQL Server 数据库和一个空的 MySQL 数据库.现在我想将SQL Server数据库的所有数据(包括数据库架构)复制到MySQL数据库中.

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.

我想过使用原始 SQL 转储,但 SQL Server 的 SQL 语法与 MySQL 不同.

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

而且我在谷歌上搜索了一些数据库迁移工具,例如 south(仅适用于 django)、simple-db-migration(仅适用于一种类型的数据库,可能是 PostreSQL?) 和 SQLAlchemy(我还没学完,只是觉得它有点笨拙).

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?

推荐答案

我通常使用 opendbcopy 来处理这些类型的工作...

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

相关文章