Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mongodb shell install windows

## Short Method: Use Chocolatey (A package manager for Windows)
## After Installing Choco (https://chocolatey.org/install)
choco.exe install mongodb-shell -y

## Long Method: Download Installer 
# Download Installer here: https://www.mongodb.com/try/download/shell
# Select Your OS & MongoDB version, Click Download
# Run the downloaded installer & follow the wizard through installation
   
## Using MongoDB Shell
# Connect to a LOCAL MongoDB Instance:
mongosh "mongodb://localhost:27017"
# Specify Database Name
mongosh "mongodb://localhost:27017/hevodb"
# Custom Port
mongosh —-port 28089

# Connect to a REMOTE MongoDB Instance
mongosh –host mongodb0.example.com –port 28015
Source by hevodata.com #
 
PREVIOUS NEXT
Tagged: #mongodb #shell #install #windows
ADD COMMENT
Topic
Name
8+8 =