0

I tried start mongod.exe but it wouldn't open.

enter image description here

Callum
  • 139
  • 1
  • 13

2 Answers2

2

the problem was that there was no "db" folder in my data folder. I just added the folder and now it's fully operational.

Callum
  • 139
  • 1
  • 13
0
mongod --dbpath "C:\Program Files\MongoDB\Server\4.0\data" 

As per the error message I tried it and this code worked. Make sure you start command prompt in Administrator mode.

Enos jeba
  • 72
  • 1
  • 3
  • 10