mongodb导入导出数据

导出数据

bin/mongoexport -h 10.255.55.179 -utest -ptest -d test -c interface_config -q '{$and :[{systemCode: "test"}]}' -o test.json

 

导入数据

bin/mongoimport -h 10.255.55.15 --port 27018 -utest -ptest -d test -c interface_config --file test.json

 

-u 用户

-p 密码

-d 数据库

-c 表

posted on 2019-06-11 11:50  hi_rain  阅读(366)  评论(0)    收藏  举报