Today I loaded .txt file into MySql table. First I loaded data by sql:
LOAD DATA LOCAL INFILE \'path/foo.txt\' IGNORE INTO TABLE foo COLUMNS TERMINATED BY \'\