Content

centos离线安装mongodb-database-tools方法详解(centos7安装mongodb4.0)速看

文章摘要

这篇文章介绍了MongoDB中用于数据管理的命令及其功能。它提到了用于二进制导出和导入MongoDB数据库的mongodump和mongorestore命令,bsondump用于将BSON文件转换为JSON格式。文章还介绍了用于数据导入和导出的Mongoimport和Mongoexport命令,分别用于从扩展JSON、CSV或TSV文件中导入数据,以及将MongoDB数据导出为JSON或CSV格式。此外,文章还讨论了用于诊断MongoDB运行状态的mongostat和mongotop命令,以及mongofiles命令用于管理GridFS中的文件。这些命令是MongoDB用户进行数据管理和分析的重要工具。



Binary Import / Export

    mongodump

Creates a binary export of the contents of a mongod database.

    mongorestore

Restores data from a mongodump database dump into a mongod or mongos

    bsondump

Converts BSON dump files into JSON.

Data Import / Export

    mongoimport

Imports content from an Extended JSON, CSV, or TSV export file.

    mongoexport

Produces a JSON or CSV export of data stored in a mongod instance.

Diagnostic Tools

    mongostat

Provides a quick overview of the status of a currently running mongod or mongos instance.

    mongotop

Provides an overview of the time a mongod instance spends reading and writing data.

GridFS Tools

    mongofiles

Supports manipulating files stored in your MongoDB instance in GridFS objects.