I also searched for solutions and many stated to uncheck ’ mongoDB compass ’ & then re-install it.But i still faced the same error everytime.For the 2) image prompt , my windows installer service is running and also windows is not in safe mode.This is my first time installing MongoDB and from today onwards i was keen to start learning it.I dont know if this is the right place to post these kind of things but at this point i have become desperate to solve this issue.Please help me resolve this error. Thank you.
Common problem is a MongoDB service which was created previously but not deleted.
Open your Service Manager services.msc. Search for any MongoDB service, stop it and have a look at service properties to get the service name.
Then you can delete the service from command line (as admin) with sc.exe delete <service name>
Personally I don’t see any reason why one should install MongoDB by running the .msi file. It is very simple to extract the .zip archive, create a config file and then create your service with mongod.exe --config <path of config file> --install and remove it again with mongod.exe --config <path of config file> --remove