导出

./mongodump --host 127.0.0.1 --port 27017 -u root -p apwd@center -d heyun_zhejiang -o /root/ --authenticationDatabase admin 

导入

./mongorestore --host 127.0.0.1 --port 27017 -u root -p apwd@center -d heyun_zhejiang  /root/heyun_zhejiang/ --authenticationDatabase admin

 

https://www.cnblogs.com/mingerlcm/p/10701752.html

https://www.cnblogs.com/igoodful/p/13936995.html

posted on 2022-03-22 17:17  23云恋49枫  阅读(30)  评论(0编辑  收藏  举报