4

Hello is there any method to transfer the table layout and data from a Postgres database to MySQL automatic?

I have to migrate the scheme anda data to MYSQL

2 Answers 2

5

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.

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.

Sign up to request clarification or add additional context in comments.

1 Comment

More details about export how to export values from PostgreSQL can be found here stackoverflow.com/a/5746348/1078641
0

It is possible to do using the "Data Transfer" feature of Navicat Premium. It will not preserve foreign keys though, but the data transfers correctly with the two databases incompatibility issues resolved.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.