mysql导入数据时报错:Incorrect date value:'0000-00-00' for column 'c_date' at row 1

Mysql5.7版本或5.7以上版本的datetime值不能为'0000-00-00 00:00:00',单独导出这个表,而后用记事本工具替换其中的'0000-00-00 00:00:00'的值,改成好比'2017-01-01 12:00:00',保存退出,最后在导入就能够了.
相关文章
相关标签/搜索