Difference between revisions of "MongoDB"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
* Backup database to binary JSON ([[BSON]]) files (<code>--out</code>): <code>mongodump --host mongodb1.example.net --port 37017 --username user --password "pass" --out /opt/backup/mongodump-2011-10-24</code>
 
* Backup database to binary JSON ([[BSON]]) files (<code>--out</code>): <code>mongodump --host mongodb1.example.net --port 37017 --username user --password "pass" --out /opt/backup/mongodump-2011-10-24</code>
  
 
== MongoDB Releases ==
 
* 4.2 Aug 2019, https://docs.mongodb.com/manual/release-notes/4.2/
 
* 4.0 Jun 2018, https://www.mongodb.com/press/mongodb-expands-its-leadership-with-a-number-of-new-product-announcements
 
* 3.6 Nov 2017, https://www.mongodb.com/blog/post/announcing-mongodb-36
 
* 3.4
 
* 3.2
 
* 3.0
 
* 2.6
 
* 2.4
 
* 2.2
 
* 2.0
 
* 1.8
 
* 1.6
 
* 1.4
 
* 1.2
 
  
 
== See also ==
 
== See also ==

Revision as of 15:34, 4 January 2020

MongoDB is an open-source document-oriented database using a JSON-like documents with schema.

Commands

  • Connect to mongoDB: mongo
  • List database: 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


See also

Advertising: