Skip to content

Instantly share code, notes, and snippets.

@lysender
Created June 15, 2025 05:33
Show Gist options
  • Save lysender/741b78b6517a52f2980ee9d51fedce2a to your computer and use it in GitHub Desktop.
Save lysender/741b78b6517a52f2980ee9d51fedce2a to your computer and use it in GitHub Desktop.

Mongo Dump using a root user

Note: Regular user may skip the --authenticationDatabase admin part

mongodump --host 127.0.0.1 -u root -p password --authenticationDatabase admin --db db_name --forceTableScan;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment