Tuesday, May 16, 2017

First steps with MongoDB - Windows

I am totally new here but, these are my very first steps with MongoDB


0. Download:

https://www.mongodb.com/download-center?jmp=nav

1. Install:

mongodb-win32-x86_64-2008plus-ssl-3.4.4-signed.msi

2. Start service:

D:\MongoDB\Server\3.4\bin>mongod.exe

Error:

MongoDB shell version v3.4.4
connecting to: mongodb://127.0.0.1:27017
I STORAGE  [initandlisten] exception in initAndListen: 29 Data directory D:\data\db\ not found., terminating

Solution:

Create folder: D:\data\db\

Ejecute mongo.exe


D:\MongoDB\Server\3.4\bin>mongo.exe
MongoDB shell version v3.4.4
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.4
Welcome to the MongoDB shell.
For interactive help, type "help".

Warning Message:

I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.

Solution: http://stackoverflow.com/questions/41615574/mongodb-server-has-startup-warnings-access-control-is-not-enabled-for-the-dat



No comments:

Post a Comment