MongoDB installation and easy to use

Source: Internet
Author: User

: https://www.mongodb.org/

In the installation directory, the key is a datastore folder (data)

Then, build a start.bat (boot file, of course you can also start each time using the command line), write in the Mongod--dbpath./data then save, click on the file to start it later, or use the command line: First go to MongoDB installation and directory , in the execution of Mongod--dbpath./data (You can also execute this command directly, as long as you add the path of the bin directory to the environment variable).

Visualization of MongoDB:

: http://www.mongovue.com/downloads/

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/1F/wKiom1XGy1SAuxlxAAG7iPEmCOw747.jpg "title=" 2015-08-09_113939.png "alt=" Wkiom1xgy1sauxlxaag7ipemcow747.jpg "/>

Python Operation MongoDB:

Import Pymongo

Con = pymonge. Mongoclient ()

TDB = con.table_name# (no words are created automatically and not created manually like SQL database)

info = tdb.test

data1 = {' Name ': U ' 51cto blog ', ' Time ': ' 2015-08-09 '}

Info.insert (DATA1)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/20/wKiom1XG0c_QUGEOAAGJk4ezs4M842.jpg "title=" 2015-08-09_120558.png "alt=" Wkiom1xg0c_qugeoaagjk4ezs4m842.jpg "/>

MongoDB installation and easy to use

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.