omotam img

Skip to main content
  1. Posts/

Configure MongoDB Community Edition

··21 words·1 min·

import PasswordCodeBlock from ‘../../src/components/PasswordCodeBlock’;

<PasswordCodeBlock symbols={0} language={‘bash’} tokens={[{name: “MONGODB_DB_PASSWORD”}]}> {mongosh --eval='use dbname'--eval='db.createUser({ user: "username", pwd: "MONGODB_DB_PASSWORD", roles: [ "readWrite" ] })'}