segment name try fixes
This commit is contained in:
parent
1147cce066
commit
5b668dce39
|
@ -110,7 +110,7 @@ restore()
|
||||||
f_log "+ $TABLE"
|
f_log "+ $TABLE"
|
||||||
|
|
||||||
split -l $CONFIG_CHUNK "$DIR/$BDD/$TABLE.txt" "$DIR/$BDD/${TABLE}_part_"
|
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;
|
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 '$DIR/$BDD/$segment'
|
||||||
INTO TABLE $TABLE;
|
INTO TABLE $TABLE;
|
||||||
|
|
Loading…
Reference in a new issue