Mongo is unable to start

后端 未结 9 949
故里飘歌
故里飘歌 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:19

    First start the server. Goto your installation path. Mine was in "Program Files/Mongodb/server/bin"

    You will find a "mongod.exe" application.

    However, the server will look for "C:/data" folder for all the databases. So create the "C:/data" folder.

    Now start the mongod.exe using command prompt.

    >>mongod
    

    After this you may start the client

    >>mongo
    

    This worked out for me.

提交回复
热议问题