将数据从PostgreSQL传输到MySQL [英] Transfer data from PostgreSQL to MySQL
本文介绍了将数据从PostgreSQL传输到MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将表格布局和数据从Postgres数据库传输到MySQL。
Hello is there any method to transfer the table layout and data from a Postgres database to MySQL automatic?
推荐答案
最简单的可能是使用Postgres将 pg_dump 实用程序,然后将生成的SQL文件导入MySql。
The easiest would probably be to export the database (schema & data) as SQL using Postgres' pg_dump utility, then import the resulting SQL file into MySql.
这可能会有一些不兼容的中间SQL,但你几乎可以确定地照顾这些与你喜欢的文本编辑器中的find / replace。
It's possible that there will be some incompatibilities in the intermediate SQL, but you can almost assuredly take care of these with a find/replace in your favorite text editor.
这篇关于将数据从PostgreSQL传输到MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文