MongoVUE is an innovative MongoDB desktop application for Windows OS that gives you an elegant and highly usable GUI interface to work with MongoDB. Now there is one less worry in managing your web-scale data.
is there any easy way to change the database from mysql to mongoDB ?
Method #1: 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: script the transfer in your language of choice. Basically you write a program that reads everything from MySQL one element at a time and then inserts it into MongoDB.
Method #2 is better than #1, but it is still not adequate.
MongoDB uses collections instead of tables. MongoDB does not support joins. In every database I’ve seen, this means that your data structure in MongoDB is different from the structure in MySQL.
Because of this, there is no «universal tool» for porting SQL to MongoDB. Your data will need to be transformed before it reaches MongoDB.
If you’re using Ruby, you can also try: Mongify It’s a super simple way to transform your data from a RDBS to MongoDB without losing anything. Mongify will read your mysql database, build a translation file for you and all you have to do is map how you want your data transformed. It supports:
Read more about it at: http://mongify.com/getting_started.html There is also a short 5 min video on the homepage that shows you how easy it is. |
|||
I am kind of partial to TalendOpenStudio for those kind of migration jobs. It is an eclipse based solution to create data migration «scripts» in a visual way. I do not like visual programming, but this is a problem domain I make an exception. Adrien Mogenet has create a MongoDBConnection plugin for mongodb. It is probably overkill for a «simple» migration but ut is a cool tool. Mind however, that the suggestion of Nix will probably save you time if it is a one-of migration. |
|||
You can use QCubed (http://qcu.be) framework for that. The procedure would be something like this:
|
||||
MongoVUE‘s free version can do this automatically for you. It can connect to both databases and perform the import |
|||
If you are looking for a tool to do it for you, good luck. My suggestion is to just pick your language of choice, and read from one and write to another. |
|||||
|
If I could quote Matt Briggs (it solved my roblem one time):
MySQL is very similar to other SQL databases, so I send You to the topić: Convert table from sql to mongoDB |
|||
You can use the following project.It requires solr like configuration file to be written.Its very simple and straight forward. |
|||
Try this: Automated conversion of MySQL dump to Mongo updates using simple r2n mappings. https://github.com/virtimus/mysql2mongo |