【发布时间】:2021-02-25 18:58:27
【问题描述】:
我正在尝试将 .bak 文件从谷歌云存储导入云 sql 并出现以下错误
generic::invalid_argument: execution of restore command failed with error: {mssql: RESTORE DATABASE is terminating abnormally.} Known Issue: presizeDiskForImportHelper: Error doing disk presize check with error: connection error: desc = "transport: Error while dialing dial tcp [::1]:8086: connect: connection refused"
我试图用谷歌搜索错误,但我没有找到任何有用的信息,除了备份文件有可能是坏的。
更新 云 SQL 中的数据库以默认排序规则显示
当我输入时
Use mydatabase
我明白了
Database 'mydatabase' cannot be opened. It is in the middle of a restore.
【问题讨论】:
-
您的实例(源和目标)是否运行相同版本的 SQL Server?
-
对不起,我没听懂这个问题。我的来源是 SQL Server 2012。我的目标是 Cloud SQL SQL Server 2017 Standard
-
我读到我可能需要在云 sql 中执行一个称为恢复的过程。知道这是什么意思吗?
-
这似乎是一种版本之间的不兼容,尝试upgrade your 2012 database to 2017,然后将bak文件导出到Cloud SQL,
-
@JanHernandez 这不是一个选项。根据 MS-SQL 文档,这应该不是问题
标签: google-cloud-storage google-cloud-sql database-restore