Database Setup for Supported Platforms
Hygieia uses MongoDB (version 3.0 and above) as the database for storage and retrieval of data. It is recommended to download any MongoDB GUI client (for example, Robo 3T) to create the database dashboard and successfully connect to it.
Download and Install Instructions
If you do not already have MongoDB installed, download the Installation Package from MongoDB download page and follow the installation instructions in the MongoDB manual.
Configuration Steps
Follow the configuration steps to run Hygieia in your MongoDB installation.
- Step 1: Create Data Directory
- Step 2: Change Directory
- Step 3: Start MongoDB
Create a data directory on the drive from which you start MongoDB to store your data files.
For example, create the data directory in the following path:
C:\Users\[usernname]\dev\data\db
Change the current working directory to the bin
directory of your MongoDB installation.
In the command prompt, run th following command:
cd C:\Program Files\MongoDB\Server\3.2\bin
Specify the path to use as data directory:
mongod --dbpath [path to the data directory]
Execute the following commands to start MongoDB, switch to db dashbaord, and then add dashboard user:
#Start mongo Command: > mongo Output: MongoDB shell version: 3.2 connecting to: test #Switch to db dashboard Command: > use dashboarddb Output: switched to db dashboard #Create db user Command: > db.createUser( { user: "dashboarduser", pwd: "dbpassword", roles: [ {role: "readWrite", db: "dashboarddb"} ] }) Output: Successfully added user: { "user" : "dashboarduser", "roles" : [ { "role" : "readWrite", "db" : "dashboarddb" } ] }
Download and Install Instructions
If you do not already have MongoDB installed, download the Installation Package from MongoDB download page and follow the installation instructions in the MongoDB manual.
Configuration Steps
Follow the configuration steps to run Hygieia in your MongoDB installation.
- Step 1: Create Data Directory
- Step 2: Change Directory
- Step 3: Start MongoDB
Create a data directory on the drive from which you start MongoDB to store your data files.
For example, create the data directory in the following path:
cd C:/Users/[usernname]/dev/data/db
Change the current working directory to the bin
directory of your MongoDB installation.
For example, in the Windows command prompt, run th following command:
cd C:/Program Files/MongoDB/Server/3.2/bin
Specify the path to use as data directory:
mongod --dbpath [path to the data directory]
Execute the following commands to start MongoDB, switch to db dashbaord, and then add dashboard user:
#Start mongo Command: > mongo Output: MongoDB shell version: 3.2 connecting to: test #Switch to db dashboard Command: > use dashboarddb Output: switched to db dashboard #Create db user Command: > db.createUser( { user: "dashboarduser", pwd: "dbpassword", roles: [ {role: "readWrite", db: "dashboarddb"} ] }) Output: Successfully added user: { "user" : "dashboarduser", "roles" : [ { "role" : "readWrite", "db" : "dashboarddb" } ] }
Download and Install Instructions
If you do not already have MongoDB installed, download the Installation Package from MongoDB download page and follow the installation instructions in the MongoDB manual.
Configuration Steps
Follow the configuration steps to run Hygieia in your MongoDB installation.
- Step 1: Create Data Directory
- Step 2: Change Directory
- Step 3: Start MongoDB
Create a data directory on the drive from which you start MongoDB to store your data files.
For example, in the Windows command prompt, run the following command:
C:/Users/[usernname]/dev/data/db
Change the current working directory to the bin
directory of your MongoDB installation.
For example, in the Windows command prompt, run th following command:
cd C:/Program Files/MongoDB/Server/3.2/bin
Specify the path to use as data directory:
mongod --dbpath [path to the data directory]
Execute the following commands to start MongoDB, switch to db dashbaord, and then add dashboard user:
#Start mongo Command: > mongo Output: MongoDB shell version: 3.2 connecting to: test #Switch to db dashboard Command: > use dashboarddb Output: switched to db dashboard #Create db user Command: > db.createUser( { user: "dashboarduser", pwd: "dbpassword", roles: [ {role: "readWrite", db: "dashboarddb"} ] }) Output: Successfully added user: { "user" : "dashboarduser", "roles" : [ { "role" : "readWrite", "db" : "dashboarddb" } ] }