First of all this is normal, because secondary is not allowed to read and write, in the application of writing more than read, using the replica sets to achieve read and write separation. By specifying Slaveok at the time of connection, or by
MongoDB cluster building (master-slave replication, replica and) (5), mongodb master-slaveVi. Architecture ManagementMongodb master-slave clusters are divided into two types:1: master-Slave replication (master-Slave) -- The Slave server will not
MongoDB Data Replication shard
I. MongoDB introduction:
MongoDB is a high-performance, open-source, and non-pattern document-based database. It is a popular NoSql database. It can be used in many scenarios to replace traditional relational databases
MongoDB-ConnectionIn this tutorial we will discuss different ways of connecting MongoDB.
Start MongoDB ServiceIn the previous tutorial, we have discussed how to start the MongoDB service, you only need to execute ' mongod ' in the bin
Log on to MongoDB as an administrator and create a database
In a database with a user name, even if you create a user in the admin database, you still cannot access other databases after logging on, but you can log on to the database, although
http://www.mongoing.com/archives/2282In general, there are two main tools to limit the schema of MongoDB:Variety: See what happens in each field in collectionsDocument Validation: Qualification of field rules for data in tables, error and warn level,
Look at the MongoDB cluster configuration, but never mind how the client is connected. You can also use MONGOs and config server when you are not using fragmentation.
When testing the configuration, see, this is not the case. Config server is not
MongoDB-instance connection instructionsConnect to MongoDB through shell
You can connect to the MongoDB service by executing the following command.
Note: localhost is the host name. This option is required:Mongodb: // localhost
When you execute the
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.