如何从pymongo发布“显示dbs”
我使用pymongo,我无法弄清楚如何执行“show dbs”的mongodb交互式shell。
from pymongo import MongoClient # Assuming youre running mongod on 'localhost' with port 27017 c = MongoClient('localhost',27017) c.database_names()
我使用pymongo,我无法弄清楚如何执行“show dbs”的mongodb交互式shell。
from pymongo import MongoClient # Assuming youre running mongod on 'localhost' with port 27017 c = MongoClient('localhost',27017) c.database_names()