Tag:mongodb

  • Introduction to common operation and maintenance technologies in mongodb introductory course

    Time:2020-4-1

    In this article, we look at mongodb from the perspective of an administrator. As an administrator, we often encounter four aspects: 1. Installation and deployment 2. Status monitoring 3. Safety certification 4. Backup and recovery, Let’s talk about it bit by bit. 1: Installation and deployment In my previous articles, I used the console program […]

  • C ා driver operation instance of mongodb introductory tutorial

    Time:2020-3-31

    As the last part of the series, we need to talk about the operation of C ා driver on mongodb. At present, there are two kinds of drivers: official driver and Samus driver, but I like the latter personally, Because it provides rich LINQ operation, it is quite convenient. Official driver: https://github.com/mongodb/mongo-csharp-driver/downloads. After downloading, a […]

  • Mongodb user’s guide basic operation

    Time:2020-3-30

    read db.collection.find() db.users.find( { age: {$gt: 18}}, {name: 1, address: 1} ).limit(5).sort({age:1}) Users is the collection name, which is searched from users; Age is query criteria, which means that the value of the search name field is larger than 18; Name is the project, the filter column (1 for existence, 0 for nonexistence), and the […]

  • Java operation mongodb database sample sharing

    Time:2020-3-29

    Mongodb is a document database and one of the most important members of NoSQL family. The following code encapsulates the basic operation of mongodb. MongoDBConfig.java package com.posoftframework.mongodb; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Enumeration; import java.util.HashMap; import java.util.Hashtable; import java.util.List; import java.util.Map; import java.util.Properties; import com.mongodb.DB; import com.mongodb.Mongo; /** *Mongodb configuration class * * […]

  • Mongodb uses skip and limit paging

    Time:2020-3-26

    Use skip and limit to page data as follows: Code:   page1 = db.things.find().limit(20)   page2 = db.things.find().skip(20).limit(20)   page3 = db.things.find().skip(40).limit(20) Note: it can be used for paging. Limit is PageSize, skip is page n-1 * PageSize (n-1 means page 1, 2…). Skip means how many pieces of data are skipped and how to optimize the aggregation […]

  • How to add mongodb to the local service item of windows

    Time:2020-3-25

    Mongodb is an open-source NoSQL database, which is mainly used in large-scale data occasions, and is regarded as the golden partner of node.js. Because it uses binary JSON format, it has incomparable affinity with JavaScript in any language. This article will not elaborate on its specific introduction. The following is mainly about mongodb adding local […]

  • The method of setting background running in mongodb

    Time:2020-3-25

    By default, mongodb stops running when the shell is closed. If you want to run in the background, just add the — fork function at startup. You can add — logappend after the log path to prevent the log from being deleted. Copy codeThe code is as follows: bin/mongodb  –fork –dbpath=//  –logpath=//  –logappend Running in […]

  • From getting started to being developable

    Time:2020-3-24

    Getting started with flitter 0. Preface: Flutter’s introduction demo has been written for a week, but it hasn’t compiled a blog. Take care of your mood. Let’s take care of it.Next to the introduction of react native Wx, it imitates the wechat interface UI,Because as a front-end development, there is a certain JS foundation, and […]

  • Mongodb installation and configuration notes

    Time:2020-3-23

    1. Copy mongodb to the specified server Download mongodb from mongodb’s official website http://www.mongodb.org/downloads, extract and test the directory to the server to be installed, and then configure it. For example: Copy codeThe code is as follows: [[email protected] ~]# scp -r [email protected]:/data/web/dxm/mongodb/mongodb-linux-x86_64-2.4.5 data/web/ The mongodb directory will be copied to the ~ / data / […]

  • Installation of mongodb in Ubuntu and some simple operation notes

    Time:2020-3-22

    First install mongodb and input at the terminal: Copy codeThe code is as follows: sudo apt-get install mongodb  Then start the mongodb database: Copy codeThe code is as follows: mongod  This error may occur: Copy codeThe code is as follows: mongod –help for help and startup options  mongod: symbol lookup error: mongod: undefined symbol: _ZN7pcrecpp2RE4InitEPKcPKNS_10RE_OptionsE  […]

  • Mongodb group operation instance in PHP

    Time:2020-3-21

    Next to the previous article, this article mainly talks about the group function of mongodb, which is quite powerful. It is quite complex for find (), skip (), distinct (), etc. Test data: Copy codeThe code is as follows: > db.fruit.find();  { “_id” : 1, “category” : “fruit”, “name” : “apple” }  { “_id” : […]

  • Mongodb joining to Windows Services

    Time:2020-3-19

    Mongodb is an open source NoSQL database, which is mainly used in large-scale data occasions, and is regarded as the golden partner of node.js. Because it uses binary JSON format, it has incomparable affinity with JavaScript in any language. This article will not elaborate on its specific introduction. The following is mainly about mongodb adding […]