Skip to content

Instantly share code, notes, and snippets.

@baringji
Last active March 24, 2022 17:48
Show Gist options
  • Save baringji/11102106 to your computer and use it in GitHub Desktop.
Save baringji/11102106 to your computer and use it in GitHub Desktop.
Restore MySQL tar.gz file using GNU zip (gunzip)

gunzip < [backupfile.sql.gz] | mysql -u[username] -p[password] [database]

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