From 8566d75142e5d48a8cb20468b093032cd71b55b6 Mon Sep 17 00:00:00 2001 From: mirocow Date: Wed, 20 Jan 2016 23:08:29 +0300 Subject: [PATCH] speed fixed --- restore_db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restore_db.sh b/restore_db.sh index 0fea9d9..bb08b49 100644 --- a/restore_db.sh +++ b/restore_db.sh @@ -64,10 +64,10 @@ restore() if [ -f "$PATH/$TABLE.txt" ]; then f_log "+ $TABLE" - /usr/bin/mysql --defaults-extra-file=$MYCNF $BDD --local-infile -e "SET foreign_key_checks = 0; + /usr/bin/mysql --defaults-extra-file=$MYCNF $BDD --local-infile -e "SET foreign_key_checks = 0; SET unique_checks = 0; SET sql_log_bin = 0; LOAD DATA LOCAL INFILE '$PATH/$TABLE.txt' INTO TABLE $TABLE; - SET foreign_key_checks = 1;" + SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" if [ ! -f "$PATH/$TABLE.txt.bz2" ]; then f_log "> $TABLE"