diff options
Diffstat (limited to 'bin/rankings-csv-import.sh')
-rwxr-xr-x | bin/rankings-csv-import.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rankings-csv-import.sh b/bin/rankings-csv-import.sh index 9eddd82..cf6ec06 100755 --- a/bin/rankings-csv-import.sh +++ b/bin/rankings-csv-import.sh @@ -1,6 +1,6 @@ #!/bin/bash DBCONFIG=($(jq -r '.[]' config/import-db.json)) -mysql -h ${DBCONFIG[2]} -P ${DBCONFIG[3]} -u ${DBCONFIG[0]} --password=${DBCONFIG[1]} -e "SET foreign_key_checks = 0; +mysql --local-infile=1 -h ${DBCONFIG[2]} -P ${DBCONFIG[3]} -u ${DBCONFIG[0]} --password=${DBCONFIG[1]} -e "SET foreign_key_checks = 0; DELETE FROM temp_rankings; LOAD DATA LOCAL INFILE '$1' REPLACE |