我需要将一个 GCP 中的 MySQL 数据库克隆到另一个 GCP 帐户。
我能想到的最明显的方法是导出 MySQL,然后将其导入另一个帐户。
还有哪些其他选择?
最佳答案
转到控制台中的 Cloud SQL 页面并选择迁移数据
。这里有几个迁移案例,其中一个符合您的要求:
- Google Cloud project to Google Cloud project
Move an instance from another Google Cloud project into this one
您可以选择将此只读副本设置为主副本(从而完成迁移),或者您可以保持只读副本的状态,您的克隆将始终是原始项目的镜像。这里描述的步骤:
The Cloud SQL Migration Assistant will guide you through the following steps:
- Providing details on your data source
- Creating a Cloud SQL read replica
- Synchronising the read replica with the source
- Promoting the read replica to your primary instance (optional)
关于mysql - 在 GCP 帐户之间迁移 MySQL 数据库的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58896501/