How can I tell where mongoDB is storing data? (its not in the default /data/db!)

前端 未结 12 468
北荒
北荒 2020-12-12 10:03

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.

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 10:22

    When you start it up it shows you. But I don't know if it is something you can do or not on your host. If you have access to the command line and can restart the service, you will get something like:

        2016-11-15T12:57:09.182-0500 I CONTROL  [initandlisten]
     MongoDB starting : pid=16448 port=27017 dbpath=C:\data\db\ 
    

提交回复
热议问题