Reputation: 829
I'm trying to load a 30GB CSV file into MySQL using:
LOAD DATA LOCAL INFILE 'C:Documents/CRSP.csv' INTO TABLE rawcrsp
FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' IGNORE 1 LINES
After a few hours of waiting, I get an error: Error Code: 2013. Lost connection to MySQL server during query.
The same code works with a smaller CSV file formatted the exact same way. I'm working in Windows 7. I have 24 GB RAM, and 240 GB free space on my hard drive. Any tips for how to get this to load?
Upvotes: 2
Views: 4250
Reputation: 167
I can think of 2 reasons:
Upvotes: 1