Loading CSV files into MySQL Workbench

calendar_today Asked Nov 15, 2011
thumb_up 12 upvotes
history Updated April 16, 2026

Question posted 2011 · +18 upvotes

I have a lot of excel/ CSV files that I need to load into my db in MySQL Workbench (I’m on Mac OS X). I’ve searched around for a good walk-through or tutorial, but I haven’t seen anything that clearly explains how to load CSVs into MySQL Workbench….can anyone help?

Accepted answer +12 upvotes

are you trying to load csv files into a MySQL table? You can do that easily with the LOAD DATA LOCAL INFILE command.

Example:

LOAD DATA LOCAL INFILE '/data.csv' INTO TABLE my_table FIELDS TERMINATED BY ','

You should be able to enter that command from any interface to MySQL. I’m assuming workbench has a way for you to execute sql queries.

Top excel Q&A (6)

+12 upvotes ranks this answer #59 out of 167 excel solutions on this site .