4 lines
125 B
JavaScript
4 lines
125 B
JavaScript
db.auth("testadmin", "testadminpass")
|
|
use valdb
|
|
db.createUser({user: "testuser", pwd: "testuserpass", roles: ["readWrite"]})
|