MongoDB With Python : #4 Custom Search Technique's

preview_player
Показать описание
#pymongo #DB #python #okaydexter

MongoDB WIth Python : #4 Custom Search Technique's

In this video we'll be seeing how user can create custom search variables for searching data within collection's.

#pip install pymongo

Like ,Share & Subscribe !!!!!
Рекомендации по теме
Комментарии
Автор

Hey! So I already have a MongoDB and I'm trying to connect to it from my laptop.

I build the MongoDB server, and have "serverng!" come up in a green box in my command line.

Then I run in Python:

import pymongo
from pymongo import MongoClient
democlient = MongoClient()
myclient =
mydb =myclient["collection"]
mycoll=mydb["db"]
myquery={"bathrooms":"8"}
mydoc=mycoll.find(myquery)
for x in mydoc:
print(x)

Why do I get this error?

localhost:27017: [WinError 10061] No connection could be made because the target machine actively refused it

clarkegallie