Soham0708/forensicLogsChaiAi
0
1from pymongo import MongoClient2 3uri = "mongodb+srv://soham:Soham2001@potholedetection.gt3rb.mongodb.net/?retryWrites=true&w=majority&appName=potholeDetection"4 5try:6 client = MongoClient(uri)7 db = client.admin # Use the "admin" database for the ping command8 result = db.command("ping")9 print("Ping successful:", result)10except Exception as e:11 print("Ping failed:", e)12 