use db;
use db;
db.createUser({
"user": "user",
"pwd": "password",
"roles": ["readWrite", "dbOwner", "dbAdmin"]
})
db.createCollection("collectionName", )
mon
brew tap mongodb/brew
brew install mongodb-database-toolsmongodump \
--host ds34456436.mongolab.com \
-d dbname \
--port 876867 \
--username user \
--password pass \
--collection user \
--collection order \
--out ~/dbmongorestore --host localhost --port 21017 -d dbNewName ~/db/dbname