I'm using Ubuntu 16.04. I have set up a database MongoDB. When I start it (with mongod command) it says that database is located at /data/db (dbpath=/data/db).
The database works fine. But in files explorer I cannot find that folder. I've looked in Computer folder and in Home (Computer/home/<my name>) folder.
I also showed hidden files and folders with Ctrl+H.
How can I find my database folder?
/data/dbis the default value of the path, ifdbPathis set, it override this value. Note that in order to use/data/dbas actual path, the folder should be exists and have the correct ownership/permissions. see updated answer with link to mongodb docs – Yaron Dec 03 '17 at 08:34/etc/mongod.confconfiguration is only used if you Start MongoDB as a service or explicitly pass this on the command line:mongod --config /etc/mongod.conf. If you startmongodwithout any options the default of/data/dbwill be used. If you startmongodas a service on Ubuntu,dbPathwill be as specified in/etc/mongod.conf(/var/lib/mongodbby default). Typically you want to be managing MongoDB as a service to ensure consistent configuration is used between invocations. – Stennie Dec 04 '17 at 03:19