Hi,
I'm trying to setup the MongoDB for the first time on a Windows 2008 platform and have been trying to follow the 'simple' install procedure at http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
However, whether I try to move the default database location to a different folder (by the command C:\mongodb\bin\mongod.exe --dbpath c:\mongodb\data) OR just start the main MongoDB database process using the existing default database location (by the command C:\mongodb\bin\mongod.exe) I get stuck at the same pair of command line prompts:
Wed Sep 05 11:35:24 [initandlisten] waiting for connections on port 27017
Wed Sep 05 11:35:24 [websvr] admin web console waiting for connections on port 2
8017
I've tried waiting patiently but with no signs of any action after 15mins+ the only way out is to Ctrl+C.
There's no mention of this error in the official install steps, nor in the troubleshooting guides or via a google search.
Any ideas?
Many thanks,
Dan
Hi Gianfranco,
Thanks for taking the time to reply.
Still don't get it I'm afraid. I'm following the tutorial line by line and am stuck at the following:Start MongoDB
To start MongoDB, execute from the Command Prompt:
C:\mongodb\bin\mongod.exeThis will start the main MongoDB database process.
The database process just hangs with the original message I posted. Surely I'm supposed to start the database before trying to connect, if I try the mongo.exe process without having successfully run the above I get:
C:\>mongodb\bin\mongo.exe
I can't see why the tutorial would instruct you to run the mongod.exe process if it couldn't be run?
MongoDB shell version: 2.2.0
connecting to: test
Wed Sep 05 13:11:06 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/
shell/mongo.js:91
exception: connect failed
Cheers,
Dan