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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -