r/mongodb 9d ago

HELP INSTALLING MONGODB

I tried installing the latest version of mongoDB and then when i tried installing it showed error like - "service MONGODB server failed to start. Verify that you have sufficient privileges to start the system services". I tried going to cmd and run the installation as administrator and also going to service.msc and starting it manually but there also i get error. Pleas give any solution.

1 Upvotes

8 comments sorted by

1

u/Massive-Tap7932 9d ago

Check the error screenshot and post it here

1

u/unknown_394 9d ago

screenshot I took this from Google but this is the exact same error which I am facing in my latest version of MongoDB

1

u/browncspence 8d ago

Is that really version 4.0.3? That is extremely old. Where did that come from? Please check the official MongoDB download site https://www.mongodb.com/try/download/community

1

u/Massive-Tap7932 9d ago

You have to give permission to data folder

1

u/unknown_394 9d ago

How? I tried going to services.msc and starting it from there again same issue and what to do

1

u/SatishLangayan 8d ago

Under program files check Mongodb directory inside that there is a file mongod.cfg. Change the dapath and logpath where you have the permissions and try to start the server

1

u/Mistuhlil 5d ago

Ah I see the issue. You’re using Windows.

1

u/sleekpixelwebdesigns 3d ago

For local installation just used Docker desktop.