Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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: 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.