All of this didn't solve it for me on my brand new Ubuntu 15.04.
I removed the LOCAL
and got this command:
LOAD DATA
INFILE A.txt
INTO DB
LINES TERMINATED BY '|';
but then I got:
MySQL said: File 'A.txt' not found (Errcode: 13 - Permission denied)
That led me to this answer from Nelson to another question on stackoverflow which solved the issue for me!