Skip to content

Instantly share code, notes, and snippets.

@vluzrmos
Last active Aug 29, 2015
Embed
What would you like to do?
Function to import tgz file to mysql.
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