Difference between revisions of "MongoDB"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[wikipedia:MongoDB]] (2009) is an open-source [[document-oriented database]] using a [[JSON]]-like documents with [[schema]]. Listen by default on [[port]] TCP 27017.
+
[[wikipedia:MongoDB]] (Feb [[2009]], [https://trends.google.com/trends/explore?date=all&q=MongoDB&hl=en trends], [[Nasdaq-100]]) is an open-source [[document-oriented database]] using a [[JSON]]-like documents with [[schema]]. Listen by default on [[port]] TCP 27017.
  
* Installation: <code>[[brew tap]] mongodb/brew && [[brew install]] mongodb-community</code>
+
* [[Dev Ittycheria]]
 +
 
 +
* Installation: <code>[[brew tap]] mongodb/brew && [[brew install mongodb-community]]</code>
 
* Runnig manually: <code>mongod --config /usr/local/etc/[[mongod.conf]] --fork</code>
 
* Runnig manually: <code>mongod --config /usr/local/etc/[[mongod.conf]] --fork</code>
 +
* [[MongoDB Compass]]: <code>[[brew install mongodb-compass]]</code>
 +
* <code>[[/var/log/mongodb/mongodb.log]]</code>
 +
* <code>[[/var/lib/mongodb/]]</code>
  
 
== Features ==
 
== Features ==
Line 17: Line 22:
  
 
== Binaries ==
 
== Binaries ==
 +
* <code>[[mongo]]</code> MongoDB shell
 
* <code>[[mongodb]]</code>
 
* <code>[[mongodb]]</code>
 
* <code>[[mongos]]</code> MongoDB Sharded Cluster Query Router
 
* <code>[[mongos]]</code> MongoDB Sharded Cluster Query Router
Line 24: Line 30:
 
* <code>[[mongoexport]]</code>
 
* <code>[[mongoexport]]</code>
 
* <code>[[mongoimport]]</code>
 
* <code>[[mongoimport]]</code>
 +
* <code>[[mongoreplay]]</code>
 +
* <code>[[mongostat]]</code>
 +
* <code>[[mongoperf]]</code>
  
 
== Editions ==
 
== Editions ==
Line 63: Line 72:
 
* [[MongoDB logs]]
 
* [[MongoDB logs]]
 
* [[MERN]] stack
 
* [[MERN]] stack
* [[Amazon DynamoDB]]
+
* [[Amazon DynamoDB]] and [[AWS DMS]]
 +
* [[Collections]]
  
 
== Activities ==
 
== Activities ==
Line 70: Line 80:
  
 
== See also ==
 
== See also ==
* {{traefik}}
+
* {{Cassandra}}
* [[Cassandra]]
 
 
* {{MongoDB}}
 
* {{MongoDB}}
* {{RocketChat}}
+
* {{NoSQL}}
* {{DBs}}
 
 
 
  
 
[[Category:Databases]]
 
[[Category:Databases]]
 +
[[Category:NoSQL]]

Latest revision as of 09:37, 11 December 2024

wikipedia:MongoDB (Feb 2009, trends, Nasdaq-100) is an open-source document-oriented database using a JSON-like documents with schema. Listen by default on port TCP 27017.

Features[edit]

Binaries[edit]

Editions[edit]

  • MongoDB Community Server

Releases[edit]

  • 4.2

Configuration[edit]

Commands[edit]

  • Connect to mongoDB: mongo or mongo --host IP_TO_CONNECT
  • List databases: show dbs or show databases
  • Connect to a database: use <your_db_name>
  • Backup your_db_name database to a file (--archive): mongodump --archive=test.20150715.archive --db your_db_name
  • Backup database to binary JSON (BSON) files (--out): mongodump --host mongodb1.example.net --port 37017 --username user --password "pass" --out /opt/backup/mongodump-2011-10-24
  • mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1
  • mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1 --bind_ip_all
  • db.myCollection.find() or db.myCollection.find().pretty()
  • show tables, show collections
  • db.users.find({"name": /.*m.*/}) or db.users.find({"name": /m/})
  • db.YOUR_COLLETION.find().sort({_id:1}).limit(50);
  • mongo --eval "printjson(db.serverStatus())"

Docker[edit]

Customers[edit]

Related terms[edit]

Activities[edit]

See also[edit]

Advertising: