0 votes
1 view
in SQL by (30.7k points)

My host came with a MongoDB instance and there is no /db directory so now I am wondering what I can do to find out where the data is actually being stored.

1 Answer

0 votes
by (73.3k points)

You can use the below-mentioned way to tell wg=here MongoDB is storing:-

By default, mongod sets the database location to /data/db/.

For checking by yourself you should run ps -xa | grep mongod and if you don't see a --dbpath which explicitly tells mongod to look at that parameter for the db location and you don't have a dbpath in your mongodb.conf, then the default location will be: /data/db/ and you should look there.

...