I can only say that there are no grammatical errors. If it cannot be exported, it can only be because the database name or collection is wrong. Because of the particularity of mongodb, it will not report an error that a certain collection does not exist, but will only export an empty collection. Confirm whether the collection or database name is wrong, please connect to the shell first
In fact, it may be that the data you want to export is too large. I remember that there are restrictions on mongodump export data. You can use mongoexport to try it
I can only say that there are no grammatical errors. If it cannot be exported, it can only be because the database name or collection is wrong.
Because of the particularity of mongodb, it will not report an error that a certain collection does not exist, but will only export an empty collection.
Confirm whether the collection or database name is wrong, please connect to the shell first
In fact, it may be that the data you want to export is too large. I remember that there are restrictions on mongodump export data. You can use mongoexport to try it