Mongo Management Studio bietet die Funktionalität, eine Collection zu kopieren. Dazu stehen Ihnen 3 Möglichkeiten zur Verfügung.Mongo Management Studio provides the functionality to copy a collection. Therefor 3 options are availableMongo Management Studio provides 3 ways to copy a collection.
Copy a collection within a database
...
A collection will be is copied within the the same database. Only the name of of the target collection must be destination collection has be entered.
Copy a collection to another database on the same MongoDB server instance
...
The collection is copied within the same MongoDB server instance to a different database. The name of the collection is maintained and kept and therefore must not already exist in the target databasedestination database.
Copy collection
...
into another MongoDB server instance
...
Copies the collection in into any database on the specified destination server instance of MongoDB. if If this database does not exist, so it will automatically created. Otherwise applies also here that the collection still may not exist in the target database.Ist für den Kopiervorgang auf die MongoDB-Serverinstanz eine Authentifizierung über eine userSource nötig, so bietet das Feld „Login-Datenbank“ die Möglichkeit, die entsprechende Datenbank anzugeben, gegen die sich authentifiziert werden muss. Ansonsten können die Authentifizierungsdaten auch in den Connection String für den Zielserver eingegeben werden, it is created automatically. Here again, the collection is not allowed to exist in the destination database already.
...
If an authentication via a userSource is needed for the copy operation on the MongoDB server instance, the field "login database" offers the ability to specify the appropriate database , against which must be authenticated. Otherwise the authentication data can be enteres in the connection string for the target server.
...
to use for authentication. The authentication data can also be specified within the connection string for the destination server.
Hinweis |
---|
When using this functionality you need to take care of MongoDB's naming conventions and make sure a database with the same name does not already exist on the server. |