当前位置:网站首页>Install mongodb database

Install mongodb database

2022-07-07 06:26:00 Fan zhidu

Reference resources Windows Platform installation MongoDB | Novice tutorial

       (1) The first step is to install monogodb database

        Note that there is a tick in the lower left corner to install graphics software during installation. Be sure to remove . meanwhile , The global environment variable configuration must be set .

       (2) The second installation navicat Graphical interface ( To baidu ), Operate the graphics management software after downloading :

stay Navicat for MongoDB Using document

operation mongoDb database

Refer to the website :​​​​​​python operation MongoDB database _ I love my blog very much -CSDN Blog _python operation mongodb database

import pymongo
client = pymongo.MongoClient(host='localhost',port=27017)
db = client['jd']
collection = db['ds']
book_info = {
    'id':'9568',
    'state':'MA'
}
result = collection.insert_one(book_info)
print(result)
print(result.inserted_id)

原网站

版权声明
本文为[Fan zhidu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070138028185.html