pymongo: MongoDB minimal verbinden – Beispiel
English
Deutsch
Dieses Beispiel verbindet sich mit der MongoDB auf localhost (Standardport 27017) ohne Benutzername oder Passwort und öffnet die Datenbank namens mydb.
pymongo_minimal_connect.py
from pymongo import MongoClient
client = MongoClient("mongodb://localhost")
db = client["mydb"]If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow