Mongo is unable to start

后端 未结 9 976
故里飘歌
故里飘歌 2020-12-28 08:58

I\'m trying to start mongo uin windows10 by type: mongo in cmd.

I am getting this error:

C:\\Users\\Itzik>mongo
MongoDB shell versio         


        
9条回答
  •  孤独总比滥情好
    2020-12-28 09:45

    This issue is resolved by creating a data directory

    Then move to the bin folder of mongodb or setting path information in environment variables

    Then you can enter the following command,

    mongod --dbpath 'path of the data folder including data directory name'

    Eg: mongod --dbpath c:\users\codemaker\data

提交回复
热议问题