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.

Sharing Is Caring:
Subscribe
Notify of
0 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments