How do i import a csv file into MySQL?

FTP the csv file up to your web root, and login the PHPMyAdmin. Drop this in the ‘SQL’ box and tweak the table / field names.

LOAD DATA LOCAL INFILE '/importfile.csv' INTO TABLE table_name FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1, filed2, field3);

Browse your table.

Drink tea.


Return to Top

Import CSV data

LATEST NEWS

TOOLS / NUGGETS

Hello 38.103.63.59, lovely to see you.

The time is 1219989711.