SHOW VARIABLES LIKE 'local_inflie';
# 활성화 1 또는 True
SET GLOBAL local_infile = 1;
#mysql --local-infile=1 -u root -p
USE dbname;
LOAD DATA LOCAL INFILE '파일위치'
INTO TABLE tablename
FIELDS TERMINATED BY ',' # 구분자 기호입력
ENCLOSED by '"' # 각 컬럼/필드는 ""로 감싸져 있음
LINES TERMINATED BY '\n' # 각 라인 구분은 \n
IGNORE 1 ROWS; # 각행의 머리글 무시
Reference
https://velog.io/@dyjeong/터미널에서-mysql-csv-import하는-방법
https://velog.io/@dyjeong/%ED%84%B0%EB%AF%B8%EB%84%90%EC%97%90%EC%84%9C-mysql-csv-import%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95
https://semode.tistory.com/496
https://passwd.tistory.com/entry/MySQL-ERROR-2068-HY000-at-line-2-LOAD-DATA-LOCAL-INFILE-file-request-rejected-due-to-restrictions-on-access
https://piaojian.tistory.com/61