简体   繁体   中英

Transfer data from PostgreSQL to MySQL

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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