xxxxxxxxxx
"C:\Program Files\MongoDB\Server\<mongo_db_version_number>\bin\mongo.exe"
xxxxxxxxxx
from pymongo import MongoClient
# Create a MongoDB client
client = MongoClient("mongodb://localhost:27017/")
# Access a database
db = client["your_database_name"]
# Access a collection
collection = db["your_collection_name"]
# Perform required operations on the collection
# For example, retrieve documents using collection.find(), insert new documents using collection.insert_one(), etc.
# Close the connection when you're done
client.close()
xxxxxxxxxx
Create the following folder
C:\data\db
cd to C:\Program Files\MongoDB\Server\3.2\bin>
enter command mongod
by default, mongodb server will start at port 27017