I have a huge 23 GB CSV file I am trying to load, and I've found that instead of converting it to insert statements which takes a while, It's possible to directly load to the DB. So I tried the following syntax:
LOAD DATA LOCAL INFILE client_report.csv into table client_report fields terminated by ',' optionally enclosed by '"' lines terminated by '\r\n' ignore 1 lines; mysql> LOAD DATA LOCAL INFILE client_report.csv into table client_report fields terminated by ',' optionally enclosed by '"' lines terminated by '\r\n' ignore 1 lines; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'client_report.csv into table client_report fields terminated by ',' opti' at line 1
I am at a loss, I seem to be following documentation to the letter, and checked sHOW GLOBAL VARIABLES LIKE 'local_infile'; its ON.
LOAD DATA LOCAL INFILE 'client_report.csv' into...