[ERR] 1292 - Incorrect datetime value: '0000-00-00 00:00:00' for column 'create_time' at row 238
[ERR] 1292 - Incorrect datetime value: '0000-00-00 00:00:00' for column 'create_time' at row 238
解决:
sql控制台命令行:
>select@@sql_mode;
>set sql_mode = '';
vi my.cnf
修改前:
sql-mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
修改后: 去掉这2个值 NO_ZERO_IN_DATE,NO_ZERO_DATE
sql-mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"