Skip to content

Instantly share code, notes, and snippets.

@lazanet
Created April 11, 2020 22:16
Show Gist options
  • Save lazanet/9e9a2703948f1e1c5381f4a443d90ead to your computer and use it in GitHub Desktop.
Save lazanet/9e9a2703948f1e1c5381f4a443d90ead to your computer and use it in GitHub Desktop.
Load large sql.gz
#!/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