Last active
March 4, 2020 16:29
-
-
Save gemmadlou/4a64d563ce09ba5f12951531fb3fc548 to your computer and use it in GitHub Desktop.
MySQL imports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql --defaults-group-suffix=_products --database data_analysis -e "load data local infile 'data/file.csv' into table table_name fields terminated by ',' enclosed by '\"' lines terminated by '\n'" | |
mysql --defaults-group-suffix=_products --database data_analysis < file.sql | |
# Dump | |
mysqldump --defaults-group-suffix=_local_products --column-statistics=0 --no-create-info --set-gtid-purged=OFF --insert-ignore rentr > test.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment