Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Import large mysql db.
# @usage importdb <database> <mysql.sql>
importdb() {
set autocommit=0;
set unique_checks=0;
set foreign_key_checks=0;
use "$1";
source "$2";
set unique_checks=1;
set foreign_key_checks=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.