MongoDB Synchronization with MYSQL
I have a requirement in which once my database is exported from MongoDb
and imported into MySql whatever changes are performed in MongoDB those
all changes should get reflected to MySql. I exported the collection
successfully from MongoDb but i was not able to synchronize them.
Any Idea to do this.. For export I used
mongoexport --collection test --out myMongo_export.json
that gave me perfect output
{ "_id" : 10, "type" : "misc", "item" : "card", "qty" : 15 }
{ "_id" : { "$oid" : "521db16ab6ee55362d0a963f" }, "a" : 1 }
{ "_id" : { "$oid" : "5220266ca9a055096847f2c0" }, "name" : "Jay", "age" :
25,"status" : "A", "groups" : [ "cricket", "tt" ] }
{ "_id" : { "$oid" : "522087785cd936a26019ecec" }, "item" : "journal",
"qty" : 20, "type" : "book" }
But this exported file was not able to get synchronized.. Any Suggestions!!
No comments:
Post a Comment