发布于 2015-09-14 14:48:02 | 191 次阅读 | 评论: 0 | 来源: 网络整理

db.copyDatabase(origin, destination, hostname)
参数:
  • origin (database) – Specifies the name of the database on the origin system.
  • destination (database) – Specifies the name of the database that you wish to copy the origin database into.
  • hostname (origin) – Indicate the hostname of the origin database host. Omit the hostname to copy from one name to another on the same server.

Use this function to copy a specific database, named origin running on the system accessible via hostname into the local database named destination. The command creates destination databases implicitly when they do not exist. If you omit the hostname, MongoDB will copy data from one database into another on the same instance.

This function provides a wrapper around the MongoDB database commandcopydb.” The clone database command provides related functionality.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务