Avatar of Jason C. Levine
Jason C. Levine
Flag for United States of America asked on

How to handle a 3 gigabyte CSV file

Hi folks,

We've been given a 3.5 gig CSV file that I need to get into a database somehow.  We have access to MySQL and Access 2003 and 2007 but I'm stumped on how to convert a file of this size to a MySQL query and Access seems to not want to open it at all.  

What tools do I need to do this?
DatabasesMicrosoft AccessMySQL Server

Avatar of undefined
Last Comment
Jason C. Levine

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
hernst42

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

ASKER
Thanks, hernst.   One follow-up, if I may:

Does that command require the table exist or will it create it based on the header row?
SOLUTION
ralmada

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

ASKER
>> Access limit is 2gb, so if you have 3gb file, you are better off with mysql

Yep, that's exactly what we're discovering today.  Thanks for the additional info, ralmada.  
SOLUTION
Jeffrey Coachman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

ASKER
Yeah, well.

3,207,489 rows with 255 columns.  Access is not rated at those sizes.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jason C. Levine

ASKER
So yeah.  It helps to RTFM.  But knowing which part of the FM to R was crucial.  Thanks to hernst for the fast answer and ralmada and boag2000 for filling in some details.
Jeffrey Coachman

<3,207,489 rows with 255 columns.  Access is not rated at those sizes.>
There is no theoretical limit to the number of rows in Access.
(The Autonumber field (Long Integer) limit is set to 2 billion)

Access can handle up to, ...but not beyond 255 columns.
But here again, because of the datatypes and other properties, it is not practical to come near this limit as other "strangeness" will probably occur.
;-)
Jeffrey Coachman

jason1178,

Nice to see you taking a break from dominating the Web zones and actually posting a question...
;-)

Jeff
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

ASKER
Heh.

Hardly "dominating" anything (except for Dreamweaver) these days.  And this one stumped my in-house guys so the "old man" had to step up and show off a little.