0

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

enter image description here

Callum
  • 129
  • 1
  • 12

2 Answers2

1

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
  • 129
  • 1
  • 12
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
  • 19
  • 2
  • 8