How to Connect to Mongo DB using Command Prompt?

Hi, in the chapter 2 tutorials we are expected to connect to the database and run queries on command prompt. However, we are not even taught how to download the shell and connect to the database after setting the path. All we are taught is how to use the commands in the Web Browser IDE. Can someone guide me on how to connect to a database via command prompt?

Hi @Dhruv_Chauhan, welcome to the community. To download and install MongoDB, you can follow the following documentation. Since you mentioned “command prompt”, I’m assuming you are learning on a Windows machine, for which you can directly go to Install MongoDB on Windows.
After installing, in case you want to learn how to connect your Atlas cluster through Mongo shell you can follow this documentation.

If you have doubts, please feel free to reach out to us.

Thanks. Regards.
Sourabh Bagrecha,
Curriculum Services Engineer.

1 Like