Problem with LOAD DATA LOCAL INFILE
Posted: Sun Jan 31, 2021 10:46 pm
Hello,
I'm using Libreofice base with Mysql 8 (java connector 8.0.21) and in one of the macros I have an instruction with LOAD DATA LOCAL INFILE.
And this macro does not want to be executed, an error appears:
"Loading local data is disabled; this must be enabled on both the client and server sides."
---other facts:
- LOAD LOCAL INFILE works
- in the MySql my.ini configuration file in [client] and [mysqld] I added "local_infile" (maybe should be "local_infile = 1" or "local_infile = ON"?)
- in Libreoffice settings - advanced - java environment options - parameters: I added "-allowLoadLocalInfile = true"
What else would I have to do to be able to import csv files from a local disk? Thanks for all the help.
I'm using Libreofice base with Mysql 8 (java connector 8.0.21) and in one of the macros I have an instruction with LOAD DATA LOCAL INFILE.
And this macro does not want to be executed, an error appears:
"Loading local data is disabled; this must be enabled on both the client and server sides."
---other facts:
- LOAD LOCAL INFILE works
- in the MySql my.ini configuration file in [client] and [mysqld] I added "local_infile" (maybe should be "local_infile = 1" or "local_infile = ON"?)
- in Libreoffice settings - advanced - java environment options - parameters: I added "-allowLoadLocalInfile = true"
What else would I have to do to be able to import csv files from a local disk? Thanks for all the help.