pymongo帶認證鏈接mongo

import pymongo

connection = pymongo.MongoClient("127.0.0.1")
connection.database.authenticate("root","1234")
db = connection.database
相關文章
相關標籤/搜索