A
A
Alexey Tipa2014-01-05 23:12:04
MongoDB
Alexey Tipa, 2014-01-05 23:12:04

MongoDB, users and their passwords. Not sure how to create them?

It is clear how to create collections, how to update and delete - it is also clear.
But I don’t understand how and where users are set with their passwords for accessing data.
If anyone knows, please describe.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
verwolfdotss, 2014-01-05
@KayzerSoze

db.addUser( { user: "Alice",
              pwd: "Moon1234",
              roles: [ "readWrite", "dbAdmin" ]
            } )

Documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question