fixed utf8 encode load data

This commit is contained in:
mirocow 2016-03-29 18:51:25 +04:00
parent 40266a4d46
commit 501b3a5e36
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ restore()
for segment in "$DIR/$BDD/${TABLE}"_part_*; do
f_log "Restore from $segment"
mysql --defaults-extra-file=$CONFIG_FILE $BDD --local-infile -e "SET foreign_key_checks = 0; SET unique_checks = 0; SET sql_log_bin = 0;
SET character_set_filesystem=utf8;
SET character_set_database=utf8;
LOAD DATA LOCAL INFILE '$segment'
INTO TABLE $TABLE;
SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;"