About MongoDB Tools

Source: Internet
Author: User
Tags mongodb client

Under Windows, MongoDB has only one bin directory and three files outside the bin directory, and the following files are included in the Bin directory:

bsondump.exe used to convert the exported Bson file format to JSON format

Mongo.exe MongoDB Client

Mongod.exe Server for starting MongoDB

Mongodump.exe is used to export Bson formatted files from the MongoDB database, similar to the MySQL dump tool mysqldump

Mongoexport.exe is used to export a database in MongoDB to a format of json,csv or TSV.

Use example: Mongoexport--host mongodb1.example.net--port 37017--username user--password pass--collection contacts

The Mongofiles.exe is used to interact with the MongoDB Gridfs file system and to manipulate the files in it, which provides an interface between our local system and the Gridfs file system for storage objects.

Use example: Mongofiles--hostname db1.example.net--port 37017-d records list

Mongoimport.exe is used to import file formats such as Json,csv or TSV into the MongoDB database.

Use example: Mongoimport--db users--collection contacts--type CSV--file/opt/backups/contacts.csv

Mongooplog.exe is used to copy the run log from the running Mongod service to the specified server, primarily for incremental backups,

Use example: Mongooplog--from mongodb0.example.net--host mongodb1.example.net

Backup can also look at this blog:http://www.ttlsa.com/html/2052.html

Mongoperf.exe Tool for independent checking of MongoDB I/O performance,

Examples of use: Mongoperf.exe < TestPrefJson.txt (Note: testPrefJson.txt stores the parameters of the test in JSON format,

For example: {nthreads:16,filesizemb:1000,r:true}, more parameters see the help of this command), configure the Iostat command on Linux to observe the effect of writing

Mongorestore.exe for recovering exported Bson files into the MongoDB database

Mongos.exe for registration system processing

Mongostat.exe Current mongod Status monitoring tool, like Linux monitoring Linux Vmstat

Mongotop.exe provides a trace of the time that the Mongod database spends reading and writing data, records for each collection, and the default record time is recorded in seconds.

Mongosniff (Linux and Unix have this tool) are used to monitor TCP/IP connections to MongoDB, similar to tcpdump.

About MongoDB Tools

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.