I tried to install MongoDB as a service and it runs through even with changing the directories for log and data to D:\develop\DB\MongoDb\Server\4.2…
When I try to run mongod from the command line I always get:
exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the ‘storage.dbPath’ option in the configuration file., terminating
Trying to run tghe service as a domain user results in an error dialog.
I wonder why MongoDb complains about C:}data\db.