Skip to content

Instantly share code, notes, and snippets.

@mlshvdv
Created March 28, 2014 14:36
Show Gist options
  • Save mlshvdv/9834335 to your computer and use it in GitHub Desktop.
Save mlshvdv/9834335 to your computer and use it in GitHub Desktop.
# Firstly edit my.cnf:
# > nano my.cnf
#
# max_allowed_packet = 2600M
# net_buffer_length = 2600M
# Or by cmd:
#
# mysql> set global max_allowed_packet=1000000000;
# mysql> set global net_buffer_length=1000000;
#
# import file
mysql -u db_user -p db_name < mybackup.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment