MYSQL Import Datagram error

start importing MYSQL Import data appears The MySQL server is running with the-- secure-file-priv option

looked up the problem of the import and export path directory of Mysql, and changed the secure-file- value in the my.ini file to

.
secure-file-priv=""

now the error in performing SQL import is as follows:

mysql> load data infile "E:\sql\film_test.txt" into table film_test2;

ERROR 29 (HY000): File "E:\sqlfilm_test.txt" not found (OS errno 2 - No such file or directory)

the file path is correct, how can you report an error and cannot find

Apr.14,2021

what is your version of MySQL, and did you compile it yourself?
is a little impressed by this parameter, which is described in MySQL in the official description. The default setting is NULL, which suppresses data import and export. There are also non-NULL, values that are set to DINSTALL_SECURE_FILE_PRIVDIR=/usr/local/mysql/mysql-files , including null values, but null values can be problematic:

A non-NULL value is considered insecure if it is empty, or the value is the data directory or a subdirectory of it, or a directory that is accessible by all users. If secure_file_priv is set to a nonexistent path, the server writes an error message to the error log and exits.

roughly this means that it is best to point to a real directory that can be accessed by system users. I remember that the example written in the instruction manual is new in the / usr/local/mysql directory.


there is a software called Navicat

Menu