I\'m using MySQL\'s LOAD DATA LOCAL INFILE SQL statement to load data from a CSV file into an existing database table.
Here is an example SQL statement:
A slightly more lengthy process that gives you a bit of testing flexibility:
Run a query like
UPDATE mytable SET mydate = STR_TO_DATE(mydate_text, '%Y-%b-%d')
If it all looks OK, drop your mydate_text column
The advantage to this technique is it lets you play around with the formats without having to re-import the table using the somewhat fussy MySQL LOAD DATA syntax, especially with length table columns. If you know exactly what you're doing, the answer above is best. If you're not an expert in MySQL, this technique can be helpful till you get your formats exactly right.