Thursday, 19 September 2013

Moving mongodb database to new location

Moving mongodb database to new location

When initially setting up mongodb I must've done something wrong as my
data isn't being written to /data/db as I intended. I have no idea where
my data is being stored (doing a search in finder for the db naem returns
no results and I can't find in the docs how I can find out the current
directory used). How can I safely point mongodb to use my desired
directory while making sure it moves all my existing data to the new
location?

No comments:

Post a Comment