Add the setting NO_ZERO_IN_DATE to the SQL_MODE system variable.
mysql>
mysql> SET @@SQL_MODE = CONCAT(@@SQL_MODE,CASE @@SQL_MODE WHEN '' THEN '' ELSE ',' END, 'NO_ZERO_IN_DATE');
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql>
Related examples in the same category