如何将MSSQL数据库转储从Plesk导入本地MS SQL服务器? [英] How to import MSSQL database dump from Plesk into local MS SQL server?
问题描述
我有一个普通的帐户,并且从其中获得的MS SQL数据库通过它们提供的此接口进行了转储:
I have a plesk acount and an MS SQL database from wich I got a dump through this interface they provide:
所以我下载了转储文件,但它不是 .txt
文件,但没有任何扩展名,当我尝试将其导入本地MS SQL Server时,总是失败。
So I downloaded the dump file but it does not come as a .txt
file but it comes without any extension and when I try to import it in my local MS SQL Server it fails always.
当我尝试使用记事本打开转储文件时,它显示了奇怪的字符(请参见下图)。
And when I try to open the dump file with notepad it shows weird characters(see picture below).
我是什么做错了吗?
推荐答案
我终于找到了使用github上的php脚本的方式,我不得不用它来更新一些东西,因为它变得过时了。
I finally found my way using a php script found on github I had to fork it to update couple things cause it became obsolete.
我不得不这样做几个原因:
I had to go this way for couple reasons:
- 我没有对plesk服务器的管理员访问权限以启用远程数据库访问
- 我无法将其导出为mysql可读的任何格式
因此,通过php脚本,我可以将其加载到服务器并运行它,
该脚本将MSSQL复制到MySQL。这是我的叉子。
So with the php script i could load it unto the server and run it, The script copies an MSSQL into MySQL. Here is my fork.
这篇关于如何将MSSQL数据库转储从Plesk导入本地MS SQL服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!