参考:https://stackoverflow.com/questions/15949038/error-code-1406-data-too-long-for-column-mysql/15949373
在新建表之前,先:
set @@global.sql_mode='';
然后再创建数据库,为了char类型设置为最大255:
create Table data( EquipType char(255),EquipID char(255),addr char(255),TimeNow DateTime,temp float,humi float, NH4 float,CO2 float,H2loat,H2S float,PM2_5 float,PM10 float);