Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ErMandeep/8afdbc4db75ffc7665d2866eb479e7fb to your computer and use it in GitHub Desktop.
Save ErMandeep/8afdbc4db75ffc7665d2866eb479e7fb to your computer and use it in GitHub Desktop.
how to import large sql file in xamp by a command
there is two command
before run command increase the size of
max_allowed_packet to 1072731894
or
SET GLOBAL max_allowed_packet=1072731894
for linux
=========
mysql -uroot -p1 cwebco_herdispenser_vxy_actual < mastercontrol_new.sql
==========
./mysql -u root -p cwebco_herdispenser_vxy_actual < cwebco_herdispenser_vxy_actual.sql
/Applications/XAMPP/xamppfiles/bin/mysql -u root -p cwebco_herdispenser_vxy_actual < cwebco_herdispenser_vxy_actual.sql
press enter
if not password for xamp user again press enter
Done
@ErMandeep
Copy link
Author

there is two command

before run command increase the size of
max_allowed_packet to 1072731894
or

SET GLOBAL max_allowed_packet=1072731894

./mysql -u root -p cwebco_herdispenser_vxy_actual < cwebco_herdispenser_vxy_actual.sql

/Applications/XAMPP/xamppfiles/bin/mysql -u root -p cwebco_herdispenser_vxy_actual < cwebco_herdispenser_vxy_actual.sql

@ErMandeep
Copy link
Author

press enter

if not password for xamp user again press enter

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment