I tried phpMyAdmin a few days ago. It is fully functional and easy to use. I have also seen some MongoDB management tools recommended by nosqlfan before, so I want to give it a try. Several trial tools are recommended in MongoDB management tools,
Date
When creating a date in MongoDB, the date created in different ways is different.
The date type created using date () in MongoDB is a string type, which contains time zone and other data. New Date () is a date object of the isodate type.
Reprinted: http://leongfans.iteye.com/blog/1019383
I searched MongoDB information yesterday and introduced a lot of applications, but not many principles.After a rough look, the two design ideas are similar in general. They mainly distribute data
Recently, we have been thinking about the architecture. One problem is that we are still plagued by these business systems, that is, logs and log statistics. The general problem is as follows:
We have many modules. Although the log format is
Super User-related: Hide and expand the copy code
Use Admin
# Adding or modifying user passwords
DB. adduser ('admin', 'pwd ')
# Viewing the user list
DB. system. Users. Find ()
# User Authentication
DB. Auth ('admin', 'pwd ')
#
MongoDB is a database server that can run in the previous or background mode while waiting for client connection. After you start MongoDB, you can see the following output:
~/$ ./mongod # # some logging output # Tue Mar 9 11:15:43 waiting for
Document directory
Sharding cluster Introduction
In this example, the actual environment architecture
Software preparation
Configure relica Sets
Configure three config servers
Configure mongs
Refreshing the shard Cluster
Collecton sharding
I recently learned MongoDB and saw some interesting information about map-Reduce, So I recorded it here as a learning note.
Here we will refer to the official website and another article on the role of Map-Reduce, Which is concise and concise.
1.
In fact, mapreduce in MongoDB is more similar to groupby in relational databases.
Just after doing this experiment, the groupby (mapreduce) for large data volumes is still ideal, generating million 3-bit random strings
for (var i=0; i
Then
BSONObjBuilder Q;Q.append("Name", str);auto_ptr cursor = conn.query("test".NewsContents", Q.obj());
The preceding statement can be used for query. Then, the conditions are appended.
The following lists several common statements:
1.
BSONObj test =
Development Environment:
System: Windows
IDE: Eclipse and myeclipse 8
Database: MongoDB
Development dependency Library:
Javaee5, mongo-2.5.3.jar, junit-4.8.2.jar
I. Preparations
1. First, download the driver packages supported by MongoDB for
There is only one Ubuntu machine. The configuration scheme is as follows:1. Three sharding parts2. Each shard consists of three nodes: 1 master and 2 slave replica sets.3. configsever
4. One routing node mongos
Shard server: mongod instance, used to
After building the cluster, you need to create a database, create a table, and set the partition primary key to initialize data!
(1) create a WLB database and set the table shards wlb_orders
D:/mongodb-win32-i386-1.8.0/CMD> Cd D:/mongodb-win32-i386-1
There are two ways to store files in MongoDB in the gridfsb mode: 1. Command Line program files 2. client-side driver programming (using Java as an example)
1. Command Line Program Files
You can insert file data to the MongoDB database under the
It is important to select an appropriate shard key for a collection. If this set is very large, it will be very difficult to modify the shard key in the future. If you have any questions, please go to the forum or IRC for help.
Sample documentView
Mongodb can be considered a document-oriented database. We are talking about structured documents, not any text documents. You can think of these documents as objects that only contain data, rather than code, methods, or classes. In addition, the
By default, ensureIndex () is a blocking operation, and all other operations in the database are paused until the index creation is complete. However, mongodb Versions later than or equal to Version 1.3.2 provide optional options for creating
Mongostat is a state detection tool that comes with mongdb. It is used in the command line. It will get the current running status of mongodb at a fixed interval and output it. If you find that the database suddenly slows down or has other problems,
Recently, php's mongo extension was used for data statistics and computation. One of the timestamp fields, precise to milliseconds, has a length of 13 BITs. However, it was originally stored as a string:
{ "_id" : ObjectId("504eea97e4b023cf38e34039")
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service