I have read through many similar questions on SE, but I can not sort out what is werong with my import. SQL does not return an error but 0/200 rows are uploaded. So I have a csv file with about 20x 12 columns. I have tried both with and without headers on the columns. I open mysql on the server and use the suggested import statement:
LOAD DATA INFILE "full_path_to_csv_file.filename.csv"
INTO TABLE users
COLUMNS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
ESCAPED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
I have tried both with and without the last line. I have tried removing the auto-increment column. I have all empty fields set to NULL...
.. and there are no errors, but 0 rows are uploaded.
I can't see what I'm doing wrong.
Help.