I have now a problem that I have to set paths through variables in queries like
load data infile '/my/file/path/to/file.txt' into table database1.table2 fields terminated by '' lines terminated by '\r\n' ( id, name_en, name_de, value_en, value_de);
The part "/my/file/path/to/" should be set with a variable, but the only way I have found is to use prepared statements, which is not possible with this type of queries.
Is there any other option to keep the path in a variable?