0 votes
1 view
in SQL by (47.8k 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 (107k 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
2 answers
asked Sep 9, 2019 in SQL by Sammy (47.8k points)
0 votes
3 answers
0 votes
2 answers
0 votes
1 answer
0 votes
2 answers
asked Oct 17, 2019 in Web Technology by Sammy (47.8k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...