我唯一找到的方法是:
$mongo->selectDB('new_db')->createCollection('tmp_collection');
$mongo->selectDB('new_db')->dropCollection('tmp_collection');
仅使用$mongo->selectDB('new_db')
是无法正常工作的。
有任何想法吗?