Why does python connect to other databases of mangodb and not to local databases?

error message:

pymongo.errors.ServerSelectionTimeoutError: 127.78.81.210 27017: [WinError 10061] unable to connect because the target computer actively refused.

May.28,2021

your address points to a local address. Do you have multiple mangodb? installed locally


has been solved, it is already connected, and there is an error when the object manipulates the database

Menu