shell 将csv内容写入mysql:

注:
需先建好table及字段

mysql -u root -p'xxxx' --local-infile=1 ming -e "LOAD DATA LOCAL INFILE '/log/aa.csv' INTO TABLE aa FIELDS TERMINATED BY ','"