0 votes
1 view
in SQL by (40.4k 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 (92.9k 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.

Related questions

0 votes
1 answer
asked Sep 9 in SQL by Sammy (40.4k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...