苹果CMS指南

采集入库过程中弹出 General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value 报错,典型示例为 General error: 1364 Field ‘vod_plot_name’ doesn’t have a default value。

报错根源是MySQL开启严格模式,报错对应的字段没有配置默认值,这类问题大多在高版本MySQL环境下出现。

解决办法:

1、更换数据库版本,选用MySQL5.5这类低版本数据库。

采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value

2、进入数据库管理工具,定位mac_vod数据表,找到报错提示的对应字段,调整字段配置,开启允许为空。

采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value

3、将字段默认值设置为NULL,保存修改,再次执行采集入库。

采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value