gpt4 book ai didi

java - 将数据从数据存储移动到 MySQL (Cloud SQL)

转载 作者:行者123 更新时间:2023-11-28 23:07:19 30 4
gpt4 key购买 nike

我正致力于将数据从 Google App 引擎数据存储移动到 Cloud SQL,我在每个地方都搜索了任何工具或流程,我得到的细节/链接很少:
1. https://cloud.google.com/datastore/docs/export-import-entities
2. https://cloud.google.com/appengine/docs/standard/python/console/datastore-backing-up-restoring
3. https://johanndutoit.net/importing-a-datastore-backup-for-local-development-on-app-engine/
4. Exporting Google App Engine Datastore to MySQL?

但没有得到完美的解决方案。任何人都可以帮助我找到有效的方法、任何工具或指南,我可以通过这些方法在 Mysql 上移动完整数据。一些表在其列值中使用其他表键,因此我们需要处理键不匹配问题。

我们将不胜感激。

最佳答案

我完成了从 DataStore 到 CloudSQL 的迁移。我的旅程是这样进行的:

  1. 使用云存储桶将 Datastore 数据导入到 google bigquery。
  2. 根据所需的数据库架构从 bigquery 中选择数据并以 Excel 格式导出。
  3. 将导出的 excel 直接导入 Cloud SQL 或转换为 SQL 脚本。

以上是从 DataStore 迁移到 CloudSql 所需的概括步骤。

关于java - 将数据从数据存储移动到 MySQL (Cloud SQL),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46789515/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com