set global sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
执行上边语句
网上说明有很多,实际上就是说
mysql的sql_mode的两个参数值NO_ZERO_DATE和NO_ZERO_IN_DATE。。。导致的,用上边语句重新设置,取消这两个参数就好了
https://wenku.baidu.com/view/53b11710a02d7375a417866fb84ae45c3b35c2e6.html
https://blog.csdn.net/qq_36204764/article/details/109295777