远程连接服务器mongodb_pymongo.errors.invaliduri: username and password m-CSDN博客

网站介绍:文章浏览阅读1k次。如果报“pymongo.errors.InvalidURI: ‘:’ or ‘@’ characters in a username or password must be escaped according to RFC 2396”;记得一定要对密码进行编码from urllib import parsefrom pymongo import MongoClientdb_name='胡..._pymongo.errors.invaliduri: username and password must be escaped according t