mysql dump csv code example
Example 1: mysqldump csv
mysqldump -u username -p -t -T/path/to/directory dbname table_name --fields-terminated-by=','
Example 2: how to dump .csv file into mysql
LOAD DATA LOCAL INFILE 'c:/country.csv'
INTO TABLE country
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;