简体   繁体   English

如何将bak文件转换为sql文件(将SQL bak文件转换为mysql支持)并执行该文件以自动还原

[英]How to convert bak file into sql file (sql bak file to mysql supported) and the execute that file to restore automatically

i want to convert a bak file of sql server into .sql/.csv/.xml file for mysql database. 我想将sql server的bak文件转换为mysql数据库的.sql / .csv / .xml文件。

And then i need a script that will automatically pick the file from server drive(suppose file is in D drive in mycomputer and script will automatically pick file from D drive) and execute sql/csv file to restore into my sql database(online) . 然后,我需要一个脚本,该脚本将自动从服务器驱动器中选择文件(假设文件位于mycomputer中的D驱动器中,并且脚本将自动从D驱动器中选择文件)并执行sql / csv文件以还原到我的sql数据库中(在线)。

Actually i have two system, 1- is on VB that runs on local host and generates a bakup file daily in the system and now i am going to create a new web application for same system that runs on VB. 实际上,我有两个系统,一个在本地主机上运行的VB上,并且每天在系统中生成一个bakup文件,现在我将为在VB上运行的同一系统创建一个新的Web应用程序。 i want that in my web application i write a script that will pick and backup file and ist convert into mysql supoported format(sql/csv/xml)(if necessary) and then execute that file for updating into mysql online database. 我希望在我的Web应用程序中编写一个脚本,该脚本将选择和备份文件,并将ist转换为mysql支持的格式(sql / csv / xml)(如有必要),然后执行该文件以更新为mysql在线数据库。

ANy kind of help will be highly appericiated. 任何帮助都将得到高度重视。 many thanx in advance. 提前很多thanx。

Possible by using MySql Migration Tool kit. 通过使用MySql迁移工具工具包可能。 First install the software ,follow below steps 首先安装软件,请按照以下步骤 在此处输入图片说明

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

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