Migrate database from Postgres to MySQL

MysqlDatabasePostgresql

Mysql Problem Overview


I have changed database from [tag:PostgreSQL] to [tag:MySQL], but I don't know how to transfer data from one to other.

Does anyone know any command by which I can copy/migrate my database from [tag:PostgreSQL] to [tag:MySQL]?

Mysql Solutions


Solution 1 - Mysql

Faced the problem a few years ago, and used pg2mysql

EDIT 21 july 2019 : this fork seems a better option (patches, light maintenance)

Solution 2 - Mysql

You can use the MySQL Workbench which can import from a variety of database types, including Postgres.

Solution 3 - Mysql

Dbeaver is the perfect solution for painless migration, column to column mapping, character encoding and also open source.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSachin RView Question on Stackoverflow
Solution 1 - MysqlFrosty ZView Answer on Stackoverflow
Solution 2 - MysqlDeckardView Answer on Stackoverflow
Solution 3 - MysqlC.TView Answer on Stackoverflow