If you use mysqlimport, command-line options provide the format specifiers.
% mysqlimport --local myDatabase mytbl.txt % mysqlimport --local --fields-terminated-by=":" --lines-terminated-by="\r" \ myDatabase mytbl.txt