Momy is a command-line tool for replicating MongoDB collections to MySQL in real-time using MongoDB's Replica Set oplog. Version 0.8.1 is the latest stable release. It enables SQL queries on NoSQL data and access via Excel or Access. Key differentiators include support for field name normalization, dot-notation field mapping, and Docker deployment. It requires MongoDB Replica Set and MySQL setup, and uses a configuration file (momyfile.json) to define collections and field types.
npm install momyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: create config, import existing data, then start streaming replication.
Start mongod with --replSet rs0 --oplogSize 100, then run rs.initiate() in mongo shell.
If using fieldCase, update any references to use 'id' instead of '_id'.
Consider using mongodump/mongorestore for initial load if data is large.
Ensure MySQL is running and the connection URL in momyfile.json is correct.
Start mongod with --replSet rs0 and run rs.initiate() in mongo shell.
Use npx momy or install globally with npm install -g momy.