Skip to content

Instantly share code, notes, and snippets.

@jadia
Created July 19, 2019 07:14
Show Gist options
  • Save jadia/821f2b6ef0445af5564dc85e28f628b8 to your computer and use it in GitHub Desktop.
Save jadia/821f2b6ef0445af5564dc85e28f628b8 to your computer and use it in GitHub Desktop.
Take MySQL dump of a database

Take MySQL dump of a database or backup the database

mysqldump -u root -pYOUR-PASSWORD-HERE DATABASE-NAME > myDbData.sql

P.S.:- No space between your passowrd and -p

Todo: Import this database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment