Skip to content

Instantly share code, notes, and snippets.

@haeramkeem
Created April 25, 2022 13:35
Show Gist options
  • Save haeramkeem/a0684ac9f11971685b0df26eb457ec51 to your computer and use it in GitHub Desktop.
Save haeramkeem/a0684ac9f11971685b0df26eb457ec51 to your computer and use it in GitHub Desktop.
mysqldump command example
#!/bin/bash
mysqldump -u username -p databasename > filename.sql # dump database
mysqldump -u username -p databasename tablename1 tablename2 > filename.sql #dump tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment