Mongo数据迁移-单个collection的迁移
因工作需要,需要单个 collection的迁移。方法是采用:mongodb/bin下的工具
导出-
./mongoexport -h 10.58.50.131 --port 27067-u user_spec_prd_r -p TBqTKeKv -d spec_prd -c spectemplate -o qy.dat
导入-
./mongoimport -h localhost --port 27100 -d test1 -c spectemplate qy.dat
页:
[1]