RAS
RAS

Reputation: 11

mongod server command is not working

I tried to install mongodb. Everythnig was fine. Mongo command is working fine. But when i try mongod it throws error message like this :

'mongod' is not recognized as an internal or external command,operable program or batch file.

P.S: I added the path variable clearly and I put a backslash after bin (C:\Program Files\MongoDB\Server\4.0\bin\)like this.

So can anyone help me to sort this out, why mongod is not working, meanwhile mongo command is working fine.

Not a duplicate,bz in may case "mongo" is working fine,whereas "mongod" only throws error

Upvotes: 0

Views: 1568

Answers (2)

Vidya
Vidya

Reputation: 66

Open command prompt as administrator and then run

Upvotes: 1

RAS
RAS

Reputation: 11

Finally, I found out the mystery.There is some missing files while I downloaded MongoDB. Especially Mongod.exe. Thats why I did't get to work.Hope someone find it useful for future reference

Upvotes: 0

Related Questions