Last active
August 29, 2015 14:26
-
-
Save vluzrmos/858f8a450b690af6fa7e to your computer and use it in GitHub Desktop.
Function to import tgz file to mysql.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import_tgz(){ | |
tar -xOzf $1 | mysql -u ${2:-root} -p${3:-1234} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment