7

如何将MySQL数据迁移到PostgreSQL中?

 3 years ago
source link: https://www.oschina.net/question/4584830_2322876
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

如何将MySQL数据迁移到PostgreSQL中?

PostgreSQLChina 发布于 06/16 10:46
阅读 603

生产环境是MySQL5.6.36,如何将MySQL数据整体迁移到PostgreSQL11中呢?求大神指点

MuskIron
06/16 11:14

数据量有多少,全部读出来成数组,然后再写入就行了啊

sprouting
06/16 14:35
该评论暂时无法显示,详情咨询 QQ 群:912889742
昨夜忆星辰
06/16 16:29

数据迁移工具kettle之类的,数据迁移很简单,索引之类的规则需要自己重做。

或者导出数据库脚本,修改其中的语法兼容问题,重新导入,也不是特别费劲。

houseme
前天 08:58  Android
傻一点就是这个代码转过去,或许管理工具也可以,但是这样很耗时间,以及有使用到主键id关联的数据需要注意
小城渔翁
昨天 14:36

数据量不大的话可以用Navicat Premium 15


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK