"Ron McKeever" <[EMAIL PROTECTED]> wrote: > I'm trying to use mysqimport instead of LOAD DATA INFILE from a shell > script. I notice an option for mysqlimport is not working or im doing it > wrong. > > This works with LOAD DATA INFILE : > mysql -e "LOAD DATA INFILE 'x' INTO TABLE x IGNORE 2 LINES" > > > but when i try: > > mysqlimport --ignore-lines=2 -uroot -ppassword month 0114.txt > > It says unknown option "--ignore-lines="? Am i doing this wrong?
Your version of mysqlimport doesn't support this option. --ignore-lines option was added in v4.0.2 of MySQL > > Also will mysqlimport work only if the .txt file is the same name as the > table in the db( mine is month.Jan04, but the files are always mmdd.txt) > > -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]