导入数据
C:\mongodb\bin>mongoimport --db chapterenglish --collection userTable--file c:\userTable.json
C:\mongodb\bin>mongoimport --db junxin --collection product --jsonArray /jsit/junxin/junxinData.json
导出数据
C:\mongodb\bin>mongoexport -h localhost -c pron -d chapterenglish -o c:\backData\pron.json
mongoexport -h localhost -c pronunciation -d chapterenglish -o c:\backData\pronunciation.json
mongoexport -h localhost -c remembered -d chapterenglish -o c:\backData\remembered.json
mongoexport -h localhost -c remembering -d chapterenglish -o c:\backData\remembering.json
mongoexport -h localhost -c userTable -d chapterenglish -o c:\backData\userTable.json
mongoexport -h localhost -c aa -d chapterenglish -o c:\backData\aa.json
标签:--,mongodb,导出,json,导入,chapterenglish,mongoexport,backData,localhost From: https://www.cnblogs.com/cxywxzj/p/17738610.html