1 year ago
#327815
Aissa Laribi
Why Mongodump work locally but not remotely?
I have set bindIp: 0.0.0.0
in /etc/mongod.conf and the mongodb server is installed in a virtual machine. When I ssh inside the virtual machine if I run the following command
sudo mongodump --uri="mongodb://username:password@127.0.0.1:27017/database" --out ./mongodump
It works, it is dumped in miliseconds
But when I run from my local machine the following command:
sudo mongodump --uri="mongodb://username:password@<PublicIP>:27017/database" --out ./mongodump
Nothing happens, the shell output returns nothing.
As well the database is small, it contains only one collection, and this collection has only one line of data.
linux
mongodb
linux-kernel
mongodump
0 Answers
Your Answer