mysql - How can I get around the lack of LINES STARTING BY support in mysqlimport? -
i want import data multiple text files mysql. thinking of using mysqlimport. however, lines begin prefix, , turns out mysqlimport does not support lines starting by clause of load data; apparently wontfix bug.
so, do? can better pipe through cut kill prefix?
i'm working several years mysql , must admit, didn't know of mysqlimport :)
since seem insist on using mysqlimport, want stay on command line / console, guess?
then can tell mysql execute 1 command without entering interactive mode.
mysql -uyourusername -pyourpassword -hyourhost db_name -e "load data infile..."
Comments
Post a Comment