How to access MongoDb database from remote machine with authentication? coding coffee

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.


Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments