MongoDB : Can the Data Store be used again in another different Mongo Server?

ぃ、小莉子 提交于 2019-12-10 11:48:34

问题


I'm a newbie in MongoDB. Please help to suggest whether it is possible, if i COPY the Data Store (Data Directory) of a MongoDB Instance (from 1 Server), onto another different MongoDB Server.

Which means, if i start another MongoDB Server by using the Data Store (Files) from another Server, will everything still work (especially the Data inside).

Or

Is there such a thing that, this Data Store must be operated by its original Server only?


回答1:


There is no problem with migrating the mongo data from one server to another. You have specific tools provided by mongoDB to do such migrations. Use mongodump and mongorestore commands for this.



来源:https://stackoverflow.com/questions/33954274/mongodb-can-the-data-store-be-used-again-in-another-different-mongo-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!