>mysql 下执行命令:
load data in file'/mnt/share/patch_export.csv' //csv file path
into table `tablename`
fields terminated by','optionallyenclosedby'"'escapedby'"'
lines terminated by'\n';
如果遇到权限问题的error,可以在连接mysql时加入参数--local-infile
即mysql -uroot -p databasename --local-infile