Command to connect to MongoDB

What are the commands to connect to mongodb for these tasks? i tried connecting but it doesn’t work.

What error are you getting?
First your mongod should be up and running
Then you can connect using mongo --port your_port_number

How do I start mongod?

You did not posted how you did that.

All the labs start with:

No need to install anything. Launch our custom in-browser Integrated Development Environment to complete this exercise.

And then there is a big green button that reads Launch IDE. For most, it is clear that IDE means Integrated Development Environment.

So the first step to press the green button to launch the custom IDE.

I already got it, I was sending the wrong commands, my mistake.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.