mongod and mongo commands not working on windows 10

后端 未结 6 1272
灰色年华
灰色年华 2021-02-13 22:27

I\'ve installed mongoDB on my windows 10 OS. Then I tried setting its database path to some directory by moving to it and typing mongod --datapath=data in cmd, wher

6条回答
  •  我在风中等你
    2021-02-13 22:52

    Based on welshGaz answer above, I edited the User Path variable but it did not work for me yet. I wasn't able to access the System Path variables.

    What I noticed from the errors on the command prompt is that it what missing the "C:\data\db" directory to store its files (I don't know what those files are for just yet). So I created that directory myself and it worked.

提交回复
热议问题