google-cloud-storage - 将 .bak 文件导入谷歌云 sql
问题描述
我正在尝试将 .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 实例运行的 VM 的磁盘大小太小。如果您有自动缩放磁盘大小,它可能仍然无法正常工作。我假设这是因为虚拟机没有理由扩展磁盘,因为它没有被填充。可能只会查看presize check
磁盘大小并发现它太小了。
我们通过将磁盘大小设置为我们知道足够大的固定大小来修复它,而不是自动缩放。
推荐阅读
- cgal - CAD中的几何内核
- javascript - D3(v5) 可折叠树与搜索
- azure-logic-apps - Azure 逻辑应用:For Each 循环中的 HTTP POST 显示未经授权的错误
- python - python scipy stats cdf beta-pert 计算返回 nan
- date - Flatline:如何计算两个日期之间的天数
- postgresql - Objection.js 渴望多对多关系问题
- excel - 如何在 iframe 中显示 xlsx 文件
- python - 从数组中的一个浮点数中查找值
- python - 元组中仅打印一个元素
- java - JScrollPanel,水平和垂直滚动不起作用