I tried the following code to load data from text document (file name is test.txt
) to MySQL database, but it shows an error:
File 'C:test.txt' not found (Errcode: 2)
The query is:
LOAD DATA LOCAL INFILE 'C:test.txt' INTO TABLE messagebox fields terminated by ',' LINES TERMINATED BY '\n';