Difference between revisions of "MongoDB"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 13: | Line 13: | ||
* {{MongoDB}} | * {{MongoDB}} | ||
* {{RocketChat}} | * {{RocketChat}} | ||
+ | * {{DBs}} | ||
[[Category:Databases]] | [[Category:Databases]] |
Revision as of 19:07, 25 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
- Cassandra
- MongoDB: MongoDB Compass,
mongo
,mongodump, mongorestore
,mongoexport
, MongoDB changelog, MongoDB Enterprise Kubernetes Operator, GridFS, MongoDB Atlas, MongoDB replication, Ops Manager, docker logs mongodb, show collections, show dbs,mongo --help
- RocketChat, MongoDB, GridFS
- Databases: Database management, SQL, NoSQL, Wide column, PostgreSQL, MariaDB, MySQL, Derby DB, MongoDB, Cassandra, SQLite, HSQL2, H2, RocksDB, Microsoft SQL Server, DB2, Oracle Database, Memcached, Berkeley DB, Collation, SingleStore, Amazon Aurora, Graph database, Amazon DynamoDB, PrestoDB, Cache hit ratio, ACID, WAL, ARIES, DBMS, OLTP, OLAP, Database Schema, CockroachDB, Tables, Views, Apache Druid
Advertising: