Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export DB ={{your_value_here}}
- export MONGO_HOST ={{your_value_here}}
- export MONGO_PORT ={{your_value_here}}
- export ADMIN_USER ={{your_value_here}}
- export ADMIN_PASSWORD ={{your_value_here}}
- export USER ={{your_value_here}}
- export USER_PASSWORD ={{your_value_here}}
- mongo $DB --host $MONGO_HOST --port $MONGO_PORT -u $ADMIN_USER -p $ADMIN_PASSWORD --authenticationDatabase admin --eval \
- "db.createUser({user: '$USER',pwd: '$USER_PASSWORD', roles: [ { role: 'dbOwner', db: '$DB' } ]});"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement