cjvt-valency/dockerfiles/database/create.js

4 lines
125 B
JavaScript

db.auth("testadmin", "testadminpass")
use valdb
db.createUser({user: "testuser", pwd: "testuserpass", roles: ["readWrite"]})