目录

SQL-Server数据库导入MySQL数据库

目录

SQL Server数据库导入MySQL数据库

首先创建一个新的数据库,在root@localhost点击鼠标右键,选到创建数据库

https://i-blog.csdnimg.cn/blog_migrate/f3e27423857a2cc2a61521406e490cff.png

数据库命名

https://i-blog.csdnimg.cn/blog_migrate/eacae51a4ec5ae01605d28227a4ddd24.png

在首选栏“数据库”选到“导入”,选择“导入外部数据库”

https://i-blog.csdnimg.cn/blog_migrate/1d6701f55fbe8a35d3112add47d5c57c.png

直接下一步

https://i-blog.csdnimg.cn/blog_migrate/b0529a4fb819fcebdd94364f609e72c7.png

数据源类型选择“任何ODBC源”,点击文件“文件DSN”,然后点击“创建一个新的DSN”

https://i-blog.csdnimg.cn/blog_migrate/567ed56a627b9c89ba1d278d1f50d2b2.png

点击下一步

https://i-blog.csdnimg.cn/blog_migrate/46f06629ce30a21fb2e16070b17b6dfe.png

选择SQL Server,然后下一步

https://i-blog.csdnimg.cn/blog_migrate/ea834e2550e8079bee443b0afc24ef94.png

点击浏览选择保存文件的路径(个人感觉选择桌面方便)

https://i-blog.csdnimg.cn/blog_migrate/52edf18c209e0a77983236d7db538d22.png

给文件命名(随便起个名字就好)

https://i-blog.csdnimg.cn/blog_migrate/0ecc149932b9d6577d7e3e685cdbec6c.png

选择刚开始在mySQL创建好的数据库,点击下一步

https://i-blog.csdnimg.cn/blog_migrate/aa397aead732587f7feecae59609276b.png

点击下一步

https://i-blog.csdnimg.cn/blog_migrate/c9021391b6e585ef84971ae48b36a266.png

选择自己原数据库有的表,建议不要点击全选,因为有些不是数据表(导入后建议检查你需要的数据表是否全部已经导入进去,如果SQL Server数据表如果有datetime类型,会导致整张表导不过去,建议将datetime类型改为date类型再进行导入操作)

https://i-blog.csdnimg.cn/blog_migrate/3bc78ed38baa30b7e447bf572d26ce62.png

然后下一步: https://i-blog.csdnimg.cn/blog_migrate/752dc5547f5e7a1ccebbd2321941bd08.png

下一步:

https://i-blog.csdnimg.cn/blog_migrate/2040fa6b9a140924d61f009e9ba23517.png

再下一步: https://i-blog.csdnimg.cn/blog_migrate/99f1d347233e6cdd658aeee57a61fc31.png

完成

https://i-blog.csdnimg.cn/blog_migrate/5b119feff59da7f15e90ac6445fc993c.png