LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.' #27175
-
I am running some Python unit tests on Github actions that interact with a MySQL database; the tests pass successfully when run locally, however in the action I’m seeing: The failing test creates a named temporary file (in I have confirmed that:
I’m afraid I don’t really know what’s happening. I’m wondering if this is an issue with the tests being run inside a container (the owner of the temporary files is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In my case, I changed the SQL call to |
Beta Was this translation helpful? Give feedback.
In my case, I changed the SQL call to
LOAD DATA INFILE
(note the absentLOCAL
) - this worked for me as the file was expected to be on the server to being with.