Very Fun...I just loaded my first .csv file into a table !!!
This seems to be a common question so I will "publish" my findings.
I am working in XP.
MySQL 5.1.44 has a flat file engine! To know if your version has it, simply type:
SELECT ENGINE, support from information_schema.engines, order by 1; (and check to see if CSV is listed and supported)
---if so, den type:
LOAD DATA INFILE '/yourpath/your.csv' (single quotes, precise flat file path and name, leave off C: and reverse the slash from DOS)
into table yourtablename
fields terminated by ',';
How sweet it is! And you will get a roughly equivalent message to this:
QUERY OK, 1068847 rows affected (44.73 sec)
Records 1068847, Deleted 0, Skipped 0, Warnings 0
I can't wait to move on to the larger tables...may do dem rat now!
Hittman