Mysql – Is it possible to dump a postgresql db and restore it in thesql

databasedatabase-backupMySQLpostgresql

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?

Best Answer

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.