用pymongo链接mongodb,操做时报错:pymongo.errors.OperationFailure: not authorized on test to execute command

建立链接对象时,用client = pymongo.MongoClient('mongodb://user:password@localhost:27017/')这样的方式,增长权限认证mongodb

相关文章
相关标签/搜索