简体   繁体   English

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

[英]Move data from datastore to MySQL(Cloud SQL)

I am working on moving data from Google App engine datastore to Cloud SQL and I searched every where for any tool or process for this I Got few details/link are :我正在将数据从 Google App 引擎数据存储移动到 Cloud SQL,我搜索了任何工具或流程,我得到的细节/链接很少:
1. https://cloud.google.com/datastore/docs/export-import-entities 1. https://cloud.google.com/datastore/docs/export-import-entities
2. https://cloud.google.com/appengine/docs/standard/python/console/datastore-backing-up-restoring 2. https://cloud.google.com/appengine/docs/standard/python/console/datastore-backing-up-restoreing
3. https://johanndutoit.net/importing-a-datastore-backup-for-local-development-on-app-engine/ 3. https://johanndutoit.net/importing-a-datastore-backup-for-local-development-on-app-engine/
4. Exporting Google App Engine Datastore to MySQL? 4. 将Google App Engine Datastore 导出到 MySQL?

But didn't got the perfect solution.但没有得到完美的解决方案。 Can anyone please help me in findout the efficient approach, any tool or guidelines by which I can move complete data on Mysql.任何人都可以帮助我找出有效的方法、任何工具或指南,我可以通过它们在 Mysql 上移动完整数据。 Some table using other tables keys in their column values so we need to take care of key mismatch problem.某些表在其列值中使用其他表键,因此我们需要处理键不匹配问题。

Your help would be appreciated.您的帮助将不胜感激。

I completed the migration from DataStore to CloudSQL.我完成了从 DataStore 到 CloudSQL 的迁移。 My Journey proceeded as follows:我的旅程是这样进行的:

  1. Import Datastore data to google bigquery using cloud storage bucket.使用云存储桶将 Datastore 数据导入到 google bigquery。
  2. Select data from bigquery as per desired db schema and export in Excel format.根据所需的数据库架构从 bigquery 中选择数据并以 Excel 格式导出。
  3. Import the exported excel in Cloud SQL directly or converting into SQL script.将导出的excel直接导入Cloud SQL或转成SQL脚本。

Above are the steps in summarized way which required to migrate from DataStore to CloudSql.以上是从 DataStore 迁移到 CloudSql 所需的汇总方式的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM