All over the Internet people are having trouble getting
LOAD DATA and LOAD DATA LOCAL to work.
Frankly, do not use them, and especially not the
LOCAL variant. They are insecure, and even if you
get them to work, they are limited and unlikely to do what you
want. Write a small data load program as shown below.
Not using LOAD DATA LOCAL
The LOCAL version of LOAD DATA has two potential security issues:
-
Because LOAD DATA LOCAL is an SQL statement, parsing occurs on the server side, and transfer of the file from the client host to the server host is initiated by the MySQL server, which tells the client the file named in the statement. In theory, a patched server could tell the client program to transfer a file of the …