1.将xlsx格式另存为xls格式。(原因不明,navicat有时候会识别不了,无法导入)
2.将数据库的引擎innoDB修改为myISAM(存储格式不同,有可能会报Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help.)
3.将数据库的编码修改为UTF8(编码不同,可能会报错 SQL Error: 1366: Incorrect string value: \xE8\xAF\xA6\xE7\xBB\x86: for column)
4.导入excel的最后一步,取消不必要的字段,只保留有用的字段(excel默认的无用字段太多,可能会报错Cannot create table [data_source]: 1118 - Row size too large. The maximum row size for the used tabl)