Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2227

Cannot connect mongodb

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None
    • Environment:
       python 3.7

      import pymongo 
      myclient = pymongo.MongoClient("mongodb+srv://user:password@cluster0-8tbow.mongodb.net/test?retryWrites=true&w=majority")

      db=myclient.admin

      db.authenticate(name="udhayxxxx@gmail.com",password="password")

      mydb = myclient['dbbl']
      mycol = mydb["first1"]
      x = mycol.insert_one(mydict)
      print(x.inserted_id)

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            udhayathilagan001@gmail.com ride 5250
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: