I want to copy my db called users binded by default to localhost:27017
to another bind address. How can I do this?
Asked
Active
Viewed 67 times
0

Francesco Vicidomini
- 98
- 7
1 Answers
0
You could try using this copydb command.
Otherwise, you could use mongo export, export the data to a file. Then import those data into the new database. Back Up and Restore with MongoDB Tools
Here is the doc of mongo export mongoexport
-
I did not want to export and import, I thought there was a more direct way to do this. Thank you – Francesco Vicidomini May 17 '18 at 23:15
-
I just remember this copydb command, hope it's helpful – Alex W May 17 '18 at 23:31