suhamemon commited on
Commit
17f2ded
1 Parent(s): 4c4b7e1

Delete test_mdb.py

Browse files
Files changed (1) hide show
  1. test_mdb.py +0 -23
test_mdb.py DELETED
@@ -1,23 +0,0 @@
1
- from pymongo.mongo_client import MongoClient
2
- from pymongo.server_api import ServerApi
3
-
4
- from urllib.parse import quote_plus
5
- username = quote_plus('wrAIteMaster')
6
- password = quote_plus('YqGvfJDUShY5nYu8')
7
-
8
-
9
- # cluster = 'wraitecluster'
10
- # authSource = '<authSource>'
11
- # authMechanism = '<authMechanism>'
12
- # uri = 'mongodb+srv://' + username + ':' + password + '@' + cluster + '/?authSource=' + authSource + '&authMechanism=' + authMechanism
13
-
14
-
15
- uri = "mongodb+srv://wrAIteMaster:YqGvfJDUShY5nYu8@wraitecluster.tpqpuj5.mongodb.net/"
16
- # Create a new client and connect to the server
17
- client = MongoClient(uri, server_api=ServerApi('1'))
18
- # Send a ping to confirm a successful connection
19
- try:
20
- client.admin.command('ping')
21
- print("Pinged your deployment. You successfully connected to MongoDB!")
22
- except Exception as e:
23
- print(e)