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

老巴夺 32 0
采集数据时,出现 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

苹果CMS采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value-1.png (12.38 KB, 下载次数: 0)

下载附件  保存到相册

昨天 13:23 上传

2、在数据库中,找到该数据表,找到该字段,修改默认值,允许为空;一般采集遇到的提示,都是在 mac_vod 数据表中去查找响应的字段

苹果CMS采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value-2.png (63.09 KB, 下载次数: 0)

下载附件  保存到相册

昨天 13:23 上传

3、默认值设置为“NULL”,最后保存即可。

苹果CMS采集报错:General error: 1364 Field ‘xxxxxxx’ doesn’t have a default value-3.png (31.04 KB, 下载次数: 0)

下载附件  保存到相册

昨天 13:23 上传