You can write scripts for the MONGO Shell in JavaScript this manipulate data in MongoDB or perform administrative Operation. For more information about the MONGO Shell, see the Running. js files via a MONGO shell Instance on the Server SE Ction For
7.mongo command line run JavaScript scriptYou can manipulate the data and manage MongoDB by writing JavaScript scripts at the command line. For more information, see How to use the [Running. js files via a MONGO shell Instance on the Server] () in
1. Execute the specified statement with the eval parameterFor example, the number of records in the T1 table that needs to query the test library is as follows:[[email protected] bin]#./mongo testMongoDB Shell version:2.6.6Connecting To:test>
This document is a logbook that resolves an issue that causes the inability to use Db.eval () after the--auth of MongoDB is opened.Problem Description:Using--auth to start MongoDB, after successful login, execute Db.eval, report the following error:>
DemandWhen writing gadgets, you often encounter the need to check things out of MongoDB, because you want to use it in conjunction with other bash toolchain, so the best way to do this is to execute the query on the shell and then pipe it to the
SQL Server has tools for database optimization. Mongo database profiler not only has but also has more powerful functions.
MongoDB comes with a profiler that allows you to easily record all operations that take a long time to facilitate
Author Introduction
WeiHaven Court co-founder and CTO, responsible for back-end research and development of the Docker-based automated service management platform. Good at Docker related technology, pass platform architecture and enterprise
http://www.mongoing.com/archives/2282In general, there are two main tools to limit the schema of MongoDB:Variety: See what happens in each field in collectionsDocument Validation: Qualification of field rules for data in tables, error and warn level,
Description
There are three servers, the MONGODB database has been installed, the specific information as follows:
MongoDB version: mongodb-linux-x86_64-2.6.11
MongoDB installation directory:/usr/local/mongodb
MongoDB Import Script#!/bin/shEcho"${0} Import data to MongoDB"Tagfile="/srv/mss_data/dim_customerex_mobile_stat_ ' Date +%y%m%d-d"-1 Day"'. Log"Impdatafile="/srv/mss_data/dim_customerex_mobile_stat_ ' Date +%y%m%d-d"-1 Day"'.
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.