分为三步:

one :假如你是xls,xlsx文件的话可通过excel的另存为保存为csv文件

two:若文件中有中文可以用editplus或者notepadd编码为你想要的格式

three:用mysql命令导入:

LOAD DATA INFILE 'F:\\aaaa.csv'

INTO TABLE `admin_user`

FIELDS TERMINATED BY ','  OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"'  

LINES TERMINATED BY '\r\n'

IGNORE 1 LINES

(boh, cname, ename,section,department,`area`,city,email);

解释下ignore意识是忽略第一行的标题