I want to restore a single table, so write the command
mongorestore --username admin --password "pwdmongo" --db poi --collection newPoi newPoi.bson
But always prompt for errors
connected to: 127.0.0.1
assertion: 18 { ok: 0.0, errmsg: "auth failed", code: 18, codeName: "AuthenticationFailed" }
First of all, the problem definitely lies in trying to remove double quotation marks and try again after confirming the user’s password in the authentication phase.