×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pymongo myclient = pymongo.MongoClient('mongodb://localhost:27017/') dblist = myclient.list_database_names() if "mydatabase" in dblist: print("The database exists.")
The database exists.