How to access MongoDb database from remote machine with authentication?

Answer:

You can use the following command to access MongoDb database from remote machine with authentication.

mongo myhost.com -u username -p --authenticationDatabase authenticationDAtabaseName

After executing above command you should prompt to enter the pass.

Leave a Reply

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x