PDA

View Full Version : MySQL LOAD DATA INFILE question


Justec
01-29-2008, 10:23 AM
I'm using LOAD DATA LOCAL INFILE and for some reason it only imports half the data.

I tried doing 68254 rows of data and it did 34127.
I then tried doing 68256 of data and it did 34128.

If I use the replace option and run the query 2 times the second time will import all the data. Any idea? I'm guessing its a setting somewhere, but thought I would post this while I go and look around.

Justec
01-29-2008, 11:51 AM
Changed:

LINES TERMINATED BY '\n'

to

LINES TERMINATED BY '\r\n'

and it works now

Justec
02-14-2008, 02:41 PM
Thanks past Justin, was working on this now and forgot how I fixed it in my testing before.