Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client = MongoClient("mongodb://username:mypassword@localhost/mydatabase-1")
- db = client['mydatabase-1']
- connection = MongoClient('localhost', 27017)
- db = connection['mydatabase-1']
- db.authenticate('username', 'mypassword')
- uri = "mongodb://username:mypassword.@localhost.com/mydatabase-1"
- client = MongoClient(uri)
- ConfigurationError: command SON([('authenticate', 1), ('user', u'CEI'), ('nonce', u'950483ef6634f14'), ('key', u'76f0102585a7571d96dace50d7aca5a6')]) failed: auth failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement