MongoDB cheatsheet

by MongoDB Cheatsheet Installation: Mac OS: brew install mongodb To launch mongo on login ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents Or run by  mongod --config /usr/local/etc/mongod.conf mongo default port: 27017 (driver) Command Description mongod –dbpath=<MONGO-DIR> Start instance mongoDB server mongo Use this command to connect to the server by

Continue reading »