Skip to content

MongoDB连接错误 #2

@tx3jun

Description

@tx3jun

self.conn = motor.MotorClient("localhost", 27017)
会报错,改成直接用MongoClient就可以:
from pymongo import MongoClient
self.conn = MongoClient("localhost", 27017)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions