

Note this is running in the command prompt without admin rights in both cases, which I think suggests this isn’t a rights issue(?) “C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe” -config “C:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg”

However, if I run the following at the command line then it works fine and I am able to connect using Compass/run my app: “C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe” -config “C:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg” -service So, if I run the following at the command line the service doesn’t start (this is copied and pasted from the Windows services “path to executable”): I am at a point where the Windows service will not start, nor will it work if I run it from the command line… unless I remove the -server option and then it works fine. I have tried various options suggested on the internet including -repair, trying to give admin permissions to everything (although think this is unnecessary because it worked without special permissions before and from what I can see most recommendations about this are the unix/linux installs) and finally I have done a full uninstall and clean install. Yesterday mongoDB would not start as a service on my main PC (note it continues to work fine on my laptop - the service starts and I can access the db no problem). This has worked all worked fine until yesterday. I have the MongoDB files set up in a folder that is mirrored across devices using (similar to Dropbox). Not sure if this is relevant, but for background I am accessing the same DB from a laptop (same versions of MongoDB and Windows10), not at the same time (!), so that I can do development work at home or when away. I have been using MongoDB Community edition (version mongodb-win32-x86_64-2012plus-4.2.5-signed) on my PC until yesterday, running Windows 10.
