一、导出和备份
参考菜鸟教程就好了:
http://www.runoob.com/mongodb/mongodb-mongodump-mongorestore.html
二、导出表
mongoexport.exe -d TestDB -c TestCollection -o ./test.json
-d ---数据库
-c ---表
-o ---输出到文件路径
一、导出和备份
参考菜鸟教程就好了:
http://www.runoob.com/mongodb/mongodb-mongodump-mongorestore.html
二、导出表
mongoexport.exe -d TestDB -c TestCollection -o ./test.json
-d ---数据库
-c ---表
-o ---输出到文件路径