Skip to content

MongoDB

Installation

  • https://www.mongodb.com/try/download/shell

Usage

Connect to the mongodb with the IP and port mongosh --host <IP>:27017

Inside a machine you can use mongo shell to connect to the database.

Basic commands

  • show dbs
  • use <db>
  • show collections
  • db.<collection>.find()