mysql - 在 GCP 帐户之间迁移 MySQL 数据库的最佳方法是什么?

标签 mysql google-cloud-platform database-migration

我需要将一个 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/

相关文章:

mysql - MYSQL 中的查询,其中列作为表名,另一列作为列作为表名的外键

php - FOSUserBundle - SQLSTATE[28000] [1045] 用户 'root' @'localhost' 的访问被拒绝(使用密码 : NO))

postgresql - Heroku 发布阶段 - 迁移前的 PG 备份

grails - 启动后如何运行Grails数据库迁移

java - Liquibase 根据表名前缀在 db 上生成更改日志

PHP 连接 MySQL 错误

mysql - 如何更新可用 MySQL 软件包的 yum 列表?

google-app-engine - 应用程序引擎节点js : how to protect a cron URL from public access?

google-cloud-platform - Dataflow 如何自动扩展和分配工作负载?

python-3.x - 项目不存在或不包含事件的 Cloud DataStore