I came across a strange issue today.
I started a fresh mongod instance with --auth option , then connected to mongo shell, I am able to run queries till I create first user which is the expected behavior.
But when I started a fresh mongod instance with --auth and --bind_ip option, then connected to mongo shell, I am not able to run any command and get this error:-
"not authorized on admin to execute command"
How --auth changed with --bind_ip?
Is this the expected behavior or I am doing something wrong?
What did you set for bind_ip? Are you using a new dbpath without any old mongod data files in it?
For bind_ip i tried with hostname once and also with its IP. But both the methods produced same results.
Yes, I am using new dbpath i.e fresh mongod instance.
댓글 없음:
댓글 쓰기