diff --git a/restore.sh b/restore.sh index 12f9dae..bb51568 100755 --- a/restore.sh +++ b/restore.sh @@ -112,7 +112,7 @@ restore() split -l $CONFIG_CHUNK "$DIR/$BDD/$TABLE.txt" "$DIR/$BDD/${TABLE}_part_" for segment in "$DIR/$BDD/${TABLE}"_part_*; do time mysql --defaults-extra-file=$CONFIG_FILE $BDD --local-infile -e "SET foreign_key_checks = 0; SET unique_checks = 0; SET sql_log_bin = 0; - LOAD DATA LOCAL INFILE '$DIR/$BDD/$segment' + LOAD DATA LOCAL INFILE '$segment' INTO TABLE $TABLE; SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" done