I am trying to import data programatically using Python pyodbc to an Amazon RDS MySQL 8.0.13 Instance.
When I run the following code through SQLYog it works perfectly.
LOAD DATA LOCAL INFILE 'D:/path/to/my/files/myfile.csv' IGNORE INTO TABLE my_table
FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
However when I run it on the same machine using either MySQL Workbench or through Python I get the error :
Error 1148. The used command is not allowed with this MySQL version
I am guessing it is something to do with either my connection string or ODBC Driver.
Can anyone tell me whether there are any known bugs with this command where it would work through one client (SQLYog) but not another (MySQL Workbench / Python).
Thanks