Skip to content

Instantly share code, notes, and snippets.

@thiagooak
Last active December 30, 2015 04:18
Show Gist options
  • Save thiagooak/7774717 to your computer and use it in GitHub Desktop.
Save thiagooak/7774717 to your computer and use it in GitHub Desktop.
fast mysql dump restore
SET AUTOCOMMIT=0;
SET UNIQUE_CHECKS=0;
SET FOREIGN_KEY_CHECKS=0;
-- DUMP HERE
SET FOREIGN_KEY_CHECKS=1;
SET UNIQUE_CHECKS=1;
SET AUTOCOMMIT=1;
COMMIT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment