Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)
How can I change the database from mysql to mongoDB ?

1 Answer

0 votes
by (107k points)

There are basically 2 methods:

Method 1: You can export from MySQL in a CSV format and then use the mongoimport tool. However, this does not always work well in terms of handling dates of binary data.

Method 2: Or you can script the transfer in your language of choice. In this method, you have to write a program that reads everything from MySQL one element at a time and then inserts it into MongoDB.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 13, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...