获取以下错误:
db.copyDatabase("old_db","new_db","localhost:27017");
WARNING: db.copyDatabase is deprecated. See http://dochub.mongodb.org/core/copydb-clone-deprecation
{
"note" : "Support for the copydb command has been deprecated. See http://dochub.mongodb.org/core/copydb-clone-deprecation",
"ok" : 1
}https://docs.mongodb.com/manual/release-notes/4.0-compatibility/#copydb-and-clone-commands
我去了这个链接,但没有关于这个的解决方案。
任何线索都将不胜感激。
发布于 2019-06-10 19:02:32
使用mongodump和mongorestore,或者使用驱动程序编写脚本。
https://stackoverflow.com/questions/56524599
复制相似问题