I need to import a csv file with 20 million rows and 2 columns into a database, but when I try to do this with MySQL Workbench\'s data import wizard it is extremely slow, p
This is an alternative.
Dump your CSV data into sql script, you need to write down some code for this.
Basically, your csv data will get converted into similar to below commands
INSERT INTO TABLE_NAME values(1,2),(1,3),....;
now use MySQL shell script and use SOURCE command
mysql> source C:/Users/Desktop/sql scripts/script.sql
your data will get imported faster as compared to direct importing a CSV for millions of record.