将数据从 Cloud SQL 迁移到外部服务器
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MySQL
| PostgreSQL
| SQL Server
本页面介绍了如何将主实例的位置迁移到外部自行管理的服务器,同时将停机时间缩至最短。
将数据迁移到外部服务器
要以最短的停机时间将数据的主副本从 Cloud SQL 迁移到外部服务器,请将外部服务器设置为外部副本,然后将 Cloud SQL 实例降级为外部服务器的副本。
此过程要求您完成以下高级步骤:
- 按照配置外部副本中的步骤,为您的 Cloud SQL 实例创建外部副本。
- 当该副本与 Cloud SQL 主实例完全同步时,使您的应用离线,然后更新应用以指向该外部服务器。
- 按照将外部副本的主实例降级中提供的说明将 Cloud SQL 主实例降级。将主实例降级的同时,系统会升级外部服务器,使其成为新的主实例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-04-09。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]