Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams Nopes. MySQL is a relational database. MongoDB is a NoSQL document database. Completely different. You'd have to write a script to migrate the MySQL database structure into a MongoDB data structure. Flukey Dec 6, 2011 at 15:43

Yes.You can use my plugin. But for that you have to write data transformation configuration.

http://code.google.com/p/sql-to-nosql-importer/

Expanding on what Flukey said; you need to write a script which will do this for you; there isn't a direct export -> import as MySQL is a relational database, where as MongoDB is a NoSQL database.

For further understanding on NoSQL you can read here: NoSQL

You can do something like export to CSV and import into mongo as described in this article CSV Import however, it's very likely that your schema is going to be different in NoSQL compared to MySQL; so it's really worth designing your schema to fit the data then migrate over.

Yikes; my answer is extremely out-dated. Since answering there have been a significant number of scripts to do exactly this. Petrogad Aug 7, 2015 at 13:21

You can use mongify http://mongify.com/ This will reduce the labour all u need to give is database credentials

And its opensource too

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .