The easiest way that I found:
cd
in your project and execute meteor
command
- in another terminal:
mongorestore -h 127.0.0.1 --port 3001 -d meteor dump/meteor
change 127.0.0.1
if your localhost has different ip address and 3001
to a port you have mongodb on (it is usually 3001
or 3002
, so try both), dump/meteor
is the path to a dump you created previously.
Also the easiest way to export local db:
cd
in your project and execute meteor
command
- In another terminal:
mongodump -h 127.0.0.1 --port 3001 -d meteor
again, change localhost ip and port if needed. . As a result, the dump/meteor folder with db files will be created in the folder you cd
before running mongodump
.
Good luck.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…