SHOW VARIABLES LIKE 'sql_mode';
SET SQL_MODE='ALLOW_INVALID_DATES'

参考:
​​​https://stackoverflow.com/questions/9192027/invalid-default-value-for-create-date-timestamp-field​

我用的是这个:

SET GLOBAL sql_mode='NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';