Check out example codes for "how to dump .csv file into mysql". It will help you in understanding the concepts better.

Code Example 1

LOAD DATA LOCAL INFILE 'c:/country.csv' 
INTO TABLE country 
FIELDS TERMINATED BY ',' 
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

Learn ReactJs, React Native from akashmittal.com