move collection between databases in mongodb

Suppose there is a collection people in the test database in mongodb, and you want to move the people collection to the database world in mongodb. First you have to switch to the admin database and then to perform the move command.

use admin;

Search within Codexpedia

Custom Search

Search the entire web

Custom Search