问题
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