From 5b668dce399e5ae0cef432a2a8ea9dca21832cd9 Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 15:41:23 +0400 Subject: [PATCH] segment name try fixes --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 30d6fb3..12f9dae 100755 --- a/restore.sh +++ b/restore.sh @@ -110,7 +110,7 @@ restore() f_log "+ $TABLE" split -l $CONFIG_CHUNK "$DIR/$BDD/$TABLE.txt" "$DIR/$BDD/${TABLE}_part_" - for segment in "$DIR/$BDD/${TABLE}_part_*"; do + 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' INTO TABLE $TABLE;