mongodb 数据迁移

2017-10-25  本文已影响0人  wildestorcs

1. 数据导出

mongoimport --host ip --port 3717 --db spider_nj --collection cityareas cityare.json -u username -p password --authenticationDatabase admin

2. 数据导入

mongoexport -d spider_nj -h192.168.1.56:27017 -c cityarea -o cityare.json --authenticationDatabase admin

上一篇 下一篇

猜你喜欢

热点阅读