Skip to content

Instantly share code, notes, and snippets.

@alihalabyah
Created June 27, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alihalabyah/69a39841b5c49d093957 to your computer and use it in GitHub Desktop.
Save alihalabyah/69a39841b5c49d093957 to your computer and use it in GitHub Desktop.
MySQL CSV Import
LOAD DATA INFILE 'file.csv' INTO TABLE table_name
FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(col_name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment