About the error in mongodb: 29 Data directory C:\ data\ db\ not found.

configure the service through the command mongod.exe-- config F:\ mongodb\ conf\ mongodb.config-- install-- serviceName "mongodb" , as shown in the following figure
clipboard.png
this is the content of the configuration file:

dbpath=D:\MongoDB\Server\data\db
logpath=D:\MongoDB\Server\logs\mongodb.log
logappend=true
journal=true
quiet=true -sharpfalse
port=27017

what is this problem and how to solve it

Mar.05,2021

I also encounter this problem. How to modify this path? I can't find disk C all the time, but I can only configure it to disk D

.
Menu