How to Connect to Mongodb database server Locally and Remote

As per mongodb documentation, we can use the mongo command to access the database using below command – Connect to mongodb database locally $ mongo -u user1 -p password123 –authenticationDatabase admin mongo -u user 127.0.0.1/admin Connect to mongodb database Remotely To connect to mongo database remotely we need below steps – 1. you should have … Read more

%d bloggers like this: