I get this error:
SyntaxError: EOL while scanning string literal
while trying to push a CSV file of more than 20 million rows to MySQL server, using this python code:
cur = connection.cursor()
query = "LOAD DATA LOCAL INFILE 'path to csv file' INTO TABLE table.name FIELDS OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n';"
cur.execute( query )
connection.commit()