Last active
February 13, 2025 09:15
-
-
Save duzenko/82a1d0b2a390e89a07a09d9c0212664c to your computer and use it in GitHub Desktop.
Analyze mysql dump content and import time
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
pv <daily-07.sql.gz | gunzip | mysql -u staging -p DB_NAME -v | grep -oP 'CREATE TABLE .*?\(' --line-buffered | awk '{print "\n",$0}' |
Author
duzenko
commented
Feb 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment