how to set mongod --dbpath

前端 未结 12 1759
囚心锁ツ
囚心锁ツ 2020-12-29 19:50

very new to mongodb and databases in general. whenever i run mongo i receive this error message: ​​​

MongoDB shell version: 2.         


        
12条回答
  •  無奈伤痛
    2020-12-29 20:25

    You can use --dbpath flag in order to provide it with the parameters i.e, the directory address. I found it useful for Windows 10 OS.

    With the default settings it is usually not required.

提交回复
热议问题