MongoDB Package Components

Core Processes

The core components in the MongoDB package are: mongod,the core database process; mongos the controller and queryrouter for sharded clusters; andmongo the interactive MongoDB Shell.

Windows Services

The mongod.exe and mongos.exe describe theoptions available for configuring MongoDB when running as a WindowsService. The mongod.exe and mongos.exe binariesprovide a superset of the mongod and mongosoptions.

Binary Import and Export Tools

mongodump provides a method for creating BSONdump files from the mongod instances, whilemongorestore makes it possible to restore thesedumps. bsondump converts BSON dump files intoJSON.

Data Import and Export Tools

mongoimport provides a method for taking data in JSON,CSV, or TSV and importing it into a mongodinstance. mongoexport provides a method to export data froma mongod instance into JSON, CSV, or TSV.

Note

The conversion between BSON and other formats lacks fulltype fidelity. Therefore you cannot use mongoimport andmongoexport for round-trip import and export operations.

Diagnostic Tools

Note

Starting in version 4.0, MongoDB offers free Cloud monitoring for standalones and replica sets.For more information, see Free Monitoring.

mongostat and mongotopprovide diagnostic information related to the current operation of amongod instance.

mongoreplay is a traffic capture and replay tool for MongoDBthat you can use to inspect and record commands sent to a MongoDBinstance, and then replay those commands back onto another host at alater time. mongoreplay is available for Linux and macOS.

MongoDB 3.4 provides mongoldap for testing native operating systemLDAP configuration options against a running LDAP server or set of servers.

GridFS

mongofiles provides a command-line interact to a MongoDBGridFS storage system.

MongoDB Compass

New in version 3.6: MongoDB is packaged with an install_compass script, whichis a platform-specific installer forMongoDB Compass Community Edition.