MySQL import data from large CSV file using LOAD DATA INFILE code example
Example: MySQL import data from large CSV file
LOAD DATA INFILE 'data.csv' INTO TABLE tbl_name
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES;