Turning on the server

  • Its time to start the server
  • Go inside the bin folder and double click the mongod.exe file.
  • It will start the mongoDB server.


 


  • It will look something like this:-


  • Now click the mongo.exe file to open the mongo client shell.




  • The mongo client shell will look like this :-




  • Note: - Always first run the mongo server then start the mongo client shell, if you do reverse, then mongo client shell will not start.

  • Sometimes the mongoDB shell doesnt start. So we can try using 
mongod --repair







0 comments:

Post a Comment