Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to get migrate data from a postgre db into mysql (mariaDB) and was wondering if it is possible to restore a db in mysql from a pgsql dump?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

No, it isn't.

You need to do a --schema-only dump and hand-convert the schema, then do a --data-only --inserts dump and use a text-processing tool to remove/replace any PostgreSQL-specific code.

Alternately, use an ETL tool like Pentaho Kettle or Talend.

share|improve this answer
Although not perfect: lightbox.ca/pg2mysql.php did most of the job for me. I have to do some handwork but this is the closest thing to a tool that I can find atm. –  Dark Star1 Jan 24 '13 at 2:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.