Unable to mongodump
-
I follow the guide https://docs.nodebb.org/configuring/upgrade/ but unfortunately
mongodump returns an error:Failed: error getting database names: command listDatabases requires authentication
-
@finau try some of the answers here
Can't create backup mongodump with --db. Authentication failed
When I create backup of all databases in MongoDB (version 3): mongodump --username bacUser --password 12345 It's OK. But when I try to create backup of a selected db: mongodump --username bacUse...
Stack Overflow (stackoverflow.com)
-
@pitaj i made this another way
security: authorization: enabled // changed to disable
Is this method correct ?
Anyway how do you restore that copy on the new fresh forum? Should I just copy it ? if so, where ? (sorry but docs are very slim)
-
@finau It will "work" but sketchy security wise. You need to read up at link above about authentication. Your command likely needs to include something like this:
mongodump ........... --authenticationDatabase=admin
See if you get prompted for pass. Can also include pass on cli via -p flag.
Have fun! o/
Update: Apologies, missed this bit:
@finau said in Unable to mongodump:
Anyway how do you restore that copy on the new fresh forum? Should I just copy it ? if so, where ? (sorry but docs are very slim)