Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I migrate the database dump of MongoDB into PostgreSQL?

I replicate the application using the database as postgresql but later on I came to know that application was using mongodb and I got the dump of the app in json format which was of mongodb.

So any help regarding to migrate the mongo db dump into postgresql will be so appreciated.

Thank you!

like image 698
Chitra Avatar asked Apr 28 '16 07:04

Chitra


People also ask

What is the best way to transfer the data in a PostgreSQL database?

Data export with pg_dump From the PostgreSQL docs: The idea behind this dump method is to generate a file with SQL commands that, when fed back to the server, will recreate the database in the same state as it was at the time of the dump. PostgreSQL provides the utility program pg_dump for this purpose.

Why we moved from NoSQL MongoDB to PostgreSQL?

The Decision to Switch From NoSQL But one key feature was missing, and it made all the difference. Timing was the main reason that The Guardian switched from MongoDB to PostgreSQL — and a different choice would likely have been made today since DynamoDB recently added that missing important feature.


1 Answers

You can migrate MongoDB into PostgreSQL using MoSQL.

Follow the github page of MoSQL. It contains the information, how you can do the migration.

Follow the this blog post for more information

like image 150
PaulShovan Avatar answered Nov 15 '22 14:11

PaulShovan