C:\mongodb>C:\mongodb\bin\mongod.exe
C:\mongodb\bin\mongod.exe --help for help and startup options
Thu Apr 25 11:09:55.533 [initandlisten] MongoDB starting : pid=9428 port=27017 d
bpath=\data\db\ 64-bit host=<hostname>
Thu Apr 25 11:09:55.535 [initandlisten] db version v2.4.3
Thu Apr 25 11:09:55.537 [initandlisten] git version: fe1743177a5ea03e91e0052fb5e
2cb2945f6d95f
Thu Apr 25 11:09:55.538 [initandlisten] build info: windows sys.getwindowsversio
n(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST
_LIB_VERSION=1_49
Thu Apr 25 11:09:55.541 [initandlisten] allocator: system
Thu Apr 25 11:09:55.542 [initandlisten] options: {}
Thu Apr 25 11:09:55.543 [initandlisten] exception in initAndListen: 10296
*********************************************************************
ERROR: dbpath (\data\db\) does not exist.
Create this directory or give existing directory in --dbpath.
*********************************************************************
, terminating
This happens when running from a different folder, and from C:\mongodb. It works fine if I specify the path manually with "mongod.exe --dbpath C:\mongodb\data\db\" but I assume I shouldn't have to. I'm actually surprised I have to manually make folders, but this is probably to make sure people put files where they mean versus not realizing they could move them.