This is an old revision of the document!
User Management
Create
db.getUsers()
db.createUser({ user: 'admin', pwd: 'xxx', roles: [ { role: 'root', db: 'admin' }] })
Delete
db.dropUser('admin')
Dump
mongodump --db=database_src --out=/tmp/dump
Restore
mongorestore --db database_dest --drop --verbose /tmp/dump/database_src/