R
R
regix2017-07-16 19:48:34
MongoDB
regix, 2017-07-16 19:48:34

Why can't I connect to the database using the login:pass of the created user?

Created a user with the command

db.createUser({
...   user: "enduser",
...   pwd: "12345",
...   roles: [
...     { role: "readWrite", db: "local-base" }
...   ]
... })

Now I'm trying to connect using these credentials in Compass, but I get an authentication error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Abcdefgk, 2017-07-16
@regix

Where did you create? You need to go (as an admin) to the database you are looking for - such as use local-base - and, being in it, write all the same.
(if in the config file, generally speaking, entry "from outside" is still allowed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question