Mongodb – How to connect to MongoDB in Windows


I'm trying to run Mongo from the Command-Line:
What's wrong? (I've IIS on localhost:80). And Apache on port 8080. Are there any issues
with this?

C:\MONGO\Project1\mongo\bin>mongo --port 27017
MongoDB shell version: 2.0.3
connecting to:
Sat Mar 10 16:16:45 Error: couldn't connect to server shell/mong
exception: connect failed

Best Solution

I found that when I got this error it wasn't because I didn't have my default db path set up. It was because I was trying to run mongo.exe before running mongod.exe.