I have set secure-file-priv="" in the my.ini file And if I run my SQL chunk inside MySQL WorkBench it works perfectly.
However when C# actually runs the DbDataReader ExecuteReader I get an error back in return. The error is telling me that that file doesn't exist, but that is because it is appending the default path on the begining of the path ("'C:\ProgramData\MySQL\MySQL Server 8.0\Data") (The command text is the exact same as the SQL below)
Example string that works
LOAD DATA INFILE '_FILEPATH.txt_' INTO TABLE tablename FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' IGNORE 1 LINES (xxx, yyy, zzz)
Error that comes back after Execute Reader, now with the added section
MySqlException: File 'C:\ProgramData\MySQL\MySQL Server 8.0\Data\DBNAME_FILEPATH.txt_' not found (OS errno 2 - No such file or directory)
I do not want it to include "C:\ProgramData\MySQL\MySQL Server 8.0\Data\DBNAME" and I don't see why it is. Any help would be appreciated!