Linux to increase the expansion module, first download the source package from the Http://pecl.php.net/package/mongo, where the download is mongo-1.2.12.tgz, then perform the installation steps
Tar zxvf mongo-1.2.12.tgzCD mongo-1.2.12
Prepare the
This article will describe the process of installing MONGODB extension in Wamp environment, you can have a little reference
Linux version can refer to the previous Linux installation php MongoDB extension
Installation Environment
System
This article describes the details of the Windows Platform installation MongoDB database, as follows
Official website: www.mongodb.orgInstall--> set environment variable--> start
1. Download:
Download the 32-bit or 64-bit. msi file according to
MongoDB IntroductionMongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database. The data structure he supports is very loose and is a JSON-like Bjson
Note: The MongoDB version used by the author is 2.4.7.
Examples of Getting Started
Copy Code code as follows:
conn = new Mongo ();
db = Conn.getdb ("db-name"); //Select Database
Db.auth ("User-name", "password"); //user
Two ways to MongoDB paginationMongoDB paging query is done by limit (), skip (), sort (), which is a combination of three functions for paging queries.Here's my test data.Db.test.find (). Sort ({"Age": 1});The first of these methodsQuery the first
The traditional relational database is generally composed of three levels of database, table, records (record),
MongoDB are made up of three levels of databases (database), Collections (collection), document objects (documents)。 MongoDB for tables
First download the installation package to the MongoDB site http://www.mongodb.org/Choose according to your operating system type and 32/64-bit.
Installing on Windows
Unzip the installation package and then create a directory for the data file,
There is another cluster in the MongoDB, the partitioning technology, similar to the table partitioning of SQL Server, we know that when the amount of data reaches the T level, our disk, memory is too high, how to deal with such a scenario how we
For example: MySQL installation configuration, there is a MySQL database, which has a user table, used to store users, as well as user rights, and MongoDB this most like relational database, there is no such a table.
One, to grasp the authority,
A mapping (projection) declaration is used to restrict the return fields of all query-matching documents. Projection lists the fields in the result set that you want to include or exclude in the form of a document. You can specify the fields to
I've heard of Node.js before, but I know it can be applied to the server, but I don't know a lot of specific things. Today in Qcon listened to Shong share "node.js out of the browser JavaScript," Immediately after the impulse to try immediately.
MongoDB official Java driver, save and read, the need is DBObject object, this is an interface, implementation put,get and other methods, similar to map, if we want to directly save ordinary Java objects to MongoDB, It needs to be converted into
Description
Operating system: CentOS 5.X 64-bit
IP Address: 192.168.21.128
To achieve the purpose:
Install Configuration MongoDB Database
Specific actions:
First, close the SELinux, configure the firewall
1, Vi/etc/selinux/config
#SELINUX
The example in this article describes how Python generates MongoDB Objectid based on time. Share to everyone for your reference. The specific analysis is as follows:
MongoDB _id for the Objectid type, Objectid contains timestamp information, so
MongoDB Configuration Master-slave replication is much simpler than MySQL1, install, start with the configuration file2. Modify the configuration fileConfiguration of the Master[Email protected] mongodb]#
Learning to write MongoDB, using the Nodejs. Here I put the hole first record, later can slowly find. This article is also slowly, for the sake of brevity, all omit the handling of errors.Basic operations:1. Increase1 varMONGO = require (' MongoDB ')
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