Created
April 11, 2020 22:16
-
-
Save lazanet/9e9a2703948f1e1c5381f4a443d90ead to your computer and use it in GitHub Desktop.
Load large sql.gz
This file contains 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
#!/bin/bash | |
pv backup.sql.gz | gunzip | mysql --max_allowed_packet=1GM -u root -p table_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment