mysql5.7高版本加载低版本sql文件,时间不能为0000-00-00格式错误

错误代码:ERROR 1067 (42000): Invalid default value for

解决方式

1.

show session variables like '%sql_mode%';

2.

set sql_mode='';
3.

select @@global.sql_mode;

4.

set global sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";

原文地址:https://www.cnblogs.com/lishuaicq/p/10503936.html