简体   繁体   English

从MSSQL导入.bak到MySQL数据库

[英]Importing .bak from MSSQL into MySQL database

My companies site uses a mysql database. 我的公司站点使用mysql数据库。 One of our clients just trying to take advantage of our API is only able to give us the data in the form of a MSSQL .bak file I have been trying to import the file using the migration tool built inot mysql workbench but have no luck. 我们试图利用我们的API的客户之一只能以MSSQL .bak文件的形式向我们提供数据,而我一直试图使用内置inot mysql workbench的迁移工具来导入该文件,但没有运气。 On top of that I am trying to see if this can be done in powershell as I would like to automate this process in the future. 最重要的是,我想看看是否可以在powershell中完成此操作,因为我希望将来实现此过程的自动化。 Any suggestions or help would be appreciated 任何建议或帮助,将不胜感激

You cannot. 你不能。 MS SQL Server backups are proprietary to MS SQL Server and cannot be used with any other RDBMS. MS SQL Server备份是MS SQL Server专有的,不能与任何其他RDBMS一起使用。 You will need to restore this backup to SQL Server, then use an additional tool to transfer the data from SQL Server into MySQL. 您将需要将此备份还原到SQL Server,然后使用其他工具将数据从SQL Server传输到MySQL。

Can you do that second portion through PowerShell? 您可以通过PowerShell完成第二部分吗? Probably. 大概。 Though SSIS would probably be a better method. 尽管SSIS可能是更好的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM