Created
May 1, 2016 05:19
-
-
Save shoaibali/e89998a01439c6fe1bc02e8a52ec7f11 to your computer and use it in GitHub Desktop.
how to see progress of mysql import gzip
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
zcat filename.sql.gz | pv --progress --size `gzip -l filename.sql.gz | sed -n 2p | awk '{print $2}'` --name ' Importing.. ' | mysql -uroot databasename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment