Skip to content

Instantly share code, notes, and snippets.

@yunusga
Forked from infusion/import-tar-gz.sh
Created May 15, 2019 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunusga/70b4298844da643eba85cae40ae813b8 to your computer and use it in GitHub Desktop.
Save yunusga/70b4298844da643eba85cae40ae813b8 to your computer and use it in GitHub Desktop.
Import a tar.gz file to MySQL
tar xzOf dump.sql.tar.gz | mysql -u $user -p $database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment