Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and simple use of mongoDB

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Download address: https://www.mongodb.org/

Click a data storage folder (data) under the installation directory

Then, create a start.bat (boot file, of course, you can start each time using the command line), write mongod-- dbpath. / data and save it, and then click on this file directly if you want to start later; or use the command line: first enter the mongodb installation and directory, and execute 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:

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

Python operation mongodb:

Import pymongo

Con = pymonge.MongoClient ()

Tdb = con.table_name# (if not, it will be created automatically, not manually like a sql database)

Info = tdb.test

Data1 = {'name':u "51cto blog",' time':'2015-08-09'}

Info.insert (data1)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report