1. 问题出错如下:
> 1067 - Invalid default value for 'order_time'
> 时间: 0.001s
2. 问题分析:
MySQL5.7的timestamp设定默认值规则不能为”0000 00-00 00:00:00”
3. 解决问题:
mysql> set sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";
Query OK, 0 rows affected, 1 warning (0.00 sec)