I. Use of the databaseShow all database commands$ . / 3.0. 6 to : Test> show dbslocal 0. 078GBtest 0. 078GB>Displays the current database object$ . / 3.0. 6 to: Test> dbtest>Switch database> Use to db local> dblocal>Connecting to a
I. MONGODB Replication INTRODUCTIONThe first sentence on the official website is replication is the process of synchronizing data across multiple Servers. Translation is replication (replication) is the process of synchronizing across multiple
MongoDB 3.0 Security access control, in the addition of users above the 3.0 version and the previous version there is a big difference, here is the next 3.0 of the method of adding users.Create the first user (the user needs to have grant permission,
MongoDB CREATE DATABASE syntaxThe syntax format for MongoDB database creation is as follows:Use database_nameIf the database does not exist, create the database, or switch to the specified database.InstanceThe following example we created the
MongoDB Delete Database syntaxThe syntax format for MongoDB database deletion is as follows:Db.dropdatabase ()Delete the current database, which is test by default, and you can use the DB command to view the current database name.InstanceThe
Summary:MongoDB 3.0 Security access control, in the addition of users above the 3.0 version and the previous version there is a big difference, here is the next 3.0 of the method of adding users.Environment, testing:After installing MongoDB, first
This article describes the basic configuration and management of a MongoDB replica set, including configuration from which nodes can read data, view replica set status, change Oplog size, configure a replicated set with authentication
The
MongoDB Delete Database syntaxThe syntax format for MongoDB database deletion is as follows:DB. Dropdatabase() Delete the current database, which is test by default, and you can use the DB command to view the current database name.InstanceThe
MongoDB installation and master-slave replicationOne, MongoDB installation1. Download the Mongodblinux version (note the difference between 32-bit and 64-bit)wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.0.7.tgz2. UnzipTar xvf
V. MongoDB import, export, backup, recovery, user authorization 1: Data export, data import as a DBA (Administrator), often encountering the need to import and export data, the following describes the utility (included): 1. import data to export csv
I. Create a new database usetoto; switchedtodbtotoshowdbs; admin (empty) local0.078GBusetoto; alias creates 1 million pieces of data for (vari1; i000000; I ++ ){... db. c3.insert ({name: zhangsan, age: I });...} db.
I. Create a new database use toto;
Query all database showdbs; Switch to create database usemydb; display all database collections showcollections query the list of database names contained in the specified database db. getCollectionNames () deletes the database currently in use.
Backup: mongodump has the best speed and compression ratio, with 28% MB of data per second and a compression ratio of up to. Restore: mongoimport is faster, but it does not guarantee complete data import to m.
Backup: mongodump has the best speed
Http://www.cnblogs.com/yoolonet/archive/2011/08/27/2155701.html
A series of articles about MongoDB recently used MongoDB as a data storage system to record their own applications and problems in actual development. I hope this will be helpful to my
The deployment of the MongoDB environment is simple. People who have already used it will certainly share the same idea with me. First download the corresponding version (http://www.mongodb.org/downloads) on the official website, to distinguish
MongoDBDataLibrary IntroductionMongoDB is a highPerformance,Open Source, NoneModeDocumentationDatabaseIt can be used in many scenarios to replace the traditional relational database or key/value storage mode. MongoDB uses C ++Development, Provides
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.