Mongo数据迁移-单个collection的迁移
2015-11-30 18:19
531 查看
因工作需要,需要单个 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
本文出自 “技术研究积累” 博客,转载请与作者联系!
方法是采用: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
本文出自 “技术研究积累” 博客,转载请与作者联系!
相关文章推荐
- Mongo解决注册码到期的问题
- Google Tensorflow 源码编译(三):tensorflow<v0.5.0>
- 解决启动mongod 时,出现addr already in use错误
- FMDB&EGODatabase(数据持久化)
- django1.6.11配置静态文件
- Golang学习摘录(二)
- 民意调查Django实现(二)
- django数据源操作(多数据源,导入导出等)
- Go-简洁的并发
- 单纯形算法求解线性规划问题(依据《算法导论》实现)
- The good site to buy rs 2007 gold cheap on RSorder with pay by Paypal or Alipay without anyconfirmat
- Django model各个字段类型
- 不错的Django技术网址
- django使用通用视图 django.views.generic
- 善用GOOGLE -- 从入门到精通
- HDU 4267 A Simple Problem with Integers
- 《Going Deeper With Convolution》学习笔记
- 基于go语言的消息推送系统架构分析
- 基于go语言的消息推送系统架构分析
- 前向-后向算法(Forward-backward algorithm)