I have data in excel sheet and have to export the data to MySQL. I am using the MySQL for Excel tool in Data tab to export the data to a new table.
I have a table with id (primary key) and name (unique, with index), around 1000 rows. Exporting it takes 3 - 5 minutes.
Why is it so slow? Any suggestions or tips on how I can speed up the export process? I have a sheet with 150,000 rows. So need some help..
Found one way to do it:
LOAD DATA INFILE "C:/data.csv" INTO TABLE mytable COLUMNS TERMINATED BY "," LINES TERMINATED BY "\r\n";
This imported 155,000 columns in a matter of seconds.