I am new to mongo
, and I am trying to install mongo on my windows system. I am following THIS tutorial, but when I do
C:\\mongodb\\bin\\mongod.
MongoDB requires a data directory to store all data. MongoDB’s default data directory path is \data\db
.
Create this folder
md \data\db
You can specify an alternate path for data files using the --dbpath
option to mongod.exe, for example:
C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data
If your path includes spaces, enclose the entire path in double quotes,
for example:
C:\mongodb\bin\mongod.exe --dbpath "d:\test\mongo db data"
Read more in detail