Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service 'MongoDB Server' (MongoDB) failed to start

I'm trying to install mongo DB on my local machine with the installer from the official website. But I'm continuously getting this message, can someone help?

enter image description here I've tried the solution provided here but didn't help.

like image 525
Eskoby Avatar asked Dec 23 '22 04:12

Eskoby


2 Answers

I suggest doing the following:

Hit Win+R to open up you run.exe then inside of it enter services.msc to open up services. Try locating the service under the name of MongoDB Server and set the Startup Type manually to Automatic - [In addition to that, you could set the username and password manually. If you get a message saying the user was granted login as a service right, try hitting retry on the MSI dialog and see if it starts].

Important:
Don't forget to save and close everything (services.msc) before continuing.


Also very important, you should (must) check your .NET framework version and update it to version 4.5 and above. You could download a software like eg Driver Booster to update all of your drivers and additional components that are outdated.

like image 137
Dzenis H. Avatar answered Dec 25 '22 16:12

Dzenis H.


I ran into the same issue. My problem was the installation location. I was trying to install under C:\MongoDB. I resolved it by installing in the default MongoDb location which is C:\Program Files\MongoDB.

like image 41
Pholoso Mams Avatar answered Dec 25 '22 16:12

Pholoso Mams