0
votes

Error

SQL query:

LOAD DATA LOCAL INFILE '/home/sharma/Desktop/New.txt' INTO TABLE FIELDS FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'

MySQL said: Documentation

2 - File '/home/sharma/Desktop/New.txt' not found (Errcode: 2)

2
Well, it happens because file is not found, obviously. - zerkms
@zerkms You should be a fortune teller :) - alex
And if it exists, it must exist in the remote side. (When not using mysqlimport with --local) - fab

2 Answers

1
votes

Check that the file exists and that you & the mysql server user have access to read it.

0
votes

If your file is located on server host, try to load it without the LOCALE keyword.