- Create a table in MySQL database. CSV file name should be equivalent to the table name that you are going to import.
EX: Table name is : PS_EMPLIDS
- Execute following command
Command to import csv file to MySQL :
mysqlimport --user=mysqlUsername --password=mysqlPassword --ignore-lines=1 databaseName ~/PS_EMPLIDS.csv
References:
http://dev.mysql.com/doc/refman/5.6/en/mysqlimport.html
References:
http://dev.mysql.com/doc/refman/5.6/en/mysqlimport.html
1 comment:
It was very useful!
Thanks for sharing this article!
Keep Blogging!!
Post a Comment