从MySQL迁移到Google Cloud SQL中的Postgre
有谁知道如何从MySQL DB迁移到Google Cloud SQL中的DB?
我尝试浏览Web put,我找不到任何指令如何完成此
数据迁移服务仅使您可以在同一DB中升级主要版本,但不能切换到其他DB
Does anyone know how to migrate from mysql db to postgre db in Google Cloud SQL ?
I tried browsing the web put I can't really find any instructions how to accomplish this
The Data Migration service only enables you to upgrade major version within same db but not to switch to different db
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据该文档,DMS当前仅支持均质数据库迁移这是最佳实践的链接 2 。
当前,没有其他Google Cloud工具可以在寻找MySQL来进行MySQL来迁移。
然而,为了将MySQL执行到PostgreSQL迁移,由于数据库并不完全相似,因此需要进行转换。
stackoverflow链接共享多个解决方案来进行转换,请记住,该信息得到社区的支持,这意味着Google Cloud Platform无法为此保证。
在上述情况下,您有两个选择来进行迁移。在第一个中,您需要遵循下一步:
1。以特定格式(转储文件或csv)导出数据,因为文档提到 4 。
2.-进行数据的转换,以便具有正确的格式(PostgreSQL) 3 。
3.-进行数据导入,因为文档提到 5 5 。
另一方面,第二个解决方案可以使用第三方工具“ pgloader” 6 , 7 这可能会帮助您进行迁移。
According to the documentation, DMS currently supports only homogeneous database migration 1 here’s a link for best practices 2.
There are currently no other Google Cloud tools to do the MySQL to PostgreSQL migration as you are looking for.
Nevertheless, in order to do the MySQL to PostgreSQL migration, a conversion would be necessary as the Databases are not entirely similar.
There is a possible workaround in stackoverflow link that shares multiple solutions to do a conversion, please keep in mind that the information is supported by the community meaning Google Cloud Platform cannot vouch for it.
With the aforementioned, you have two options in order to do the migration. In the first one, you would need to follow the next steps:
1.- Do an export of your data in a specific format (dump file or csv) as the documentation mentions 4.
2.- Do the conversion of the data in order to have the right format (Postgresql) 3.
3.- Do the import of the data as the documentation mentions 5.
On the other hand, the second solution could be using the 3rd party tool “pgloader” 6,7 that may help you with the migration.