错误代码: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";