Bunu yapmak için bulunan tek yoludur:
$mongo->selectDB('new_db')->createCollection('tmp_collection'); $mongo->selectDB('new_db')->dropCollection('tmp_collection');
Doing just $mongo->selectDB('new_db') actually doesn't work. Got any idea?
$mongo->selectDB('new_db')