Transferred from: http://blog.csdn.net/chaijunkun/article/details/7227967.
MongoDB, as a distributed file storage-based database, has been sought after for nearly two years. Flexible Data Access and efficient processing make it widely used in Internet applications.
I recently started to study MongoDB usage on Windows 32-bit platform. For convenience, I prefer to
This article describes how to install MongoDB on Windows 7.
Note: Unlike installing other software on Windows, MongoDB only needs to download the zip package, decompress it, configure the data storage directory, and start it.
1. Download MongoDB
On the official
installed MongoDB to the Bin directory cut-off (write complete as above) Click OK
Locate the path variable in the system variable click Edit
Variable name does not need to be changed
The variable value is preceded by the name of the variable that was created (my previous step was created with the name Mongdb_home)
The format is%mongdb_home%\bin; (note that the last must be used; Separated) after completion as shown in the above figure click O
Install eclipse in Mongodb for windows pymongo, and mongodbforwindows
Download
MongoDB provides a pre-compiled Binary Package for 32-bit and 64-bit systems, you can download and install from the MongoDB official website, MongoDB pre-compiled Binary Package: http://www.mongo
the MongoDB database. >help (View related information) >db.foo.insert ({a:1}) (Insert a,1 field value to Foo table, Foo table as default table) >db.foo.find () (View foo table data)Start MongoDB as a Windows service
Sign up for MongoDB ServiceEntry: E:\Work_App\MongoDB
can install MongoDB as a Windows service Or run cmd, go to the Bin folder and execute the following command > D:\mongodb\bin>mongod--dbpath "d:\mongodb\data\db"--logpath "D:\mongodb\data\log\MongoDB.log"--install-- ServiceName "MongoD
Label:Download MONGODB provides pre-compiled binaries for both 32-bit and 64-bit systems, which you can download from MongoDB website, MongoDB precompiled binary package: Http://www.mongodb.org/downloads
MongoDB for Windows 64-bit is suitable for 64-bit
Install and configure MongoDB in Windows, mongodbwindowsMongoDB Installation
1. first go to the official website (http://www.mongodb.org/downloads) to download the appropriate installation package, the latest version is 2.6The installation package is in the zip and msi formats. We recommend that you download the zip format. The msi is actually decompressed, and the installation path is not selected during i
successful, if not successful, you can see whether the port is occupied.
2 Configuring the MongoDB extension for PHP
(1) Download Php_mongo.dll
First you need to see the current PHP version and the supported extensions (note the contents of the red box)
You can see that the landlord is using the php5.4.16 version, x86 (32-bit), support TS (Thread Safe) PHP extension
At this point, go to the download DLL to find the corresponding version
Http://pecl
1. Download MongoDB Windows version, there are 32-bit and 64-bit version, download according to the system, download address: http://www.mongodb.org/downloads
2. Extract to D:/mongodb
3. Create a storage location for your database files, such as d:/mongodb/data/db. You must create a storage folder for the database file
Tags: io os using SP file data on CTI ADLimit () methodTo limit the records in MongoDB, you need to use the limit () method. The limit () method accepts a numeric parameter, which is the number of documents to display.Grammar:The basic syntax for the limit () method is as follows>db. Collection_name. Find(). Limit(number) ExampleConsider the collection Myycol with the following data{ "_ID" : ObjectId(5983548781331adf45ec5), "Title":"
I. first install MongoDB1. Download mongodb:http://www.mongodb.org/downloads on the website and select the Windows platform. When installed, all the way next is available. I installed it in the F:\mongoDB directory.2. Create a working directory:
New data storage directory in MongoDB directory: F:\mongoDB\data\
The last time I wrote about basic MongoDB installation, may not be very detailed, but also written very bad, but we will say in detail, if you deploy MongoDB on your Windows computer.1. Configure Environment variablesIf it's going to be a lot of trouble to go into the bin directory of the MongoDB on the cmd every time,
Tags: blog http com using file dataMongoDB development has been to 2.6 version, since the acquisition of 100 million U.S. dollars in the wind, the development speed is much faster than before, because the previous period of time to use the cache, but also compared to MongoDB, we also feel that it is more suitable for non-relational big data storage, so the system statistical analysis of the function of it.The installation of
Implementation tutorial of MongoDB set field matching query method, mongodb Field
MongoDB is a distributed file storage-based database. This article describes how to perform matching queries on the fields integrated in MongoDB records.1. Create a Test Database
use testdbdb.
=d:\mongodb\logs\ Mongodb.log--logappend--directoryperdb " Success marked as hint: CreateService success Delete Service directive: Mongod.exe--remove--servicename "MongoDB" Note to start the command line by using administrator mode So there's MongoDB service in the service. Start Mongodb:net start MongoDB Stop Mongod
, and once again open a Cmd.exe Then open a Cmd.exe as an administrator Run such as the following command MD"C:\mongodb"MD"C:\mongodb\log"MD"C:\mongodb\data"Echo LogPath=C:\mongodb\log\mongo.Log> "C:\mongodb\mongod.cfg"Echo DBPath=C:\m
+27017 This is the browser input http://localhost:27017/can see the display information forIt looks like you is trying to access MongoDB over HTTP on the native driver port.Specific as follows:To this MongoDB is installed, than imagined simple too DohaMongoDB is installed as a Windows serviceInstalling MongoDB as a
The sixth chapter recommends 4 hours of study time 10 chaptersHow to learn: read it in detail and implement the relevant code manuallyLearning Goals : This tutorial will teach you to install node, build servers, Express, MySQL, MongoDB, write background business logic, write interfaces, and finally complete a complete project backstage, a total of 10 days is expected.Database
Database management struc
Dropdatabase () methodThe MongoDB db.dropdatabase () command is used to delete an existing database.Grammar:The basic syntax for the dropdatabase () command is as follows:DB. Dropdatabase() This will delete the selected database. If you have not selected any databases, then it will delete the default ' test ' databaseExample:First, check the list database by using the command show DBS>Show dbslocal 0.78125GB0.23012GB0.23012GB> If you want t
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.