ERROR 1067 (42000): Invalid default value for 'created_at'

前端 未结 14 1700
-上瘾入骨i
-上瘾入骨i 2020-12-04 07:31

When I tried to alter the table it showed the error:

ERROR 1067 (42000): Invalid default value for \'created_at\'

I googled for this error

14条回答
  •  借酒劲吻你
    2020-12-04 08:19

    I came across the same error while trying to install a third party database. I tried the solution proposed unsuccessfully i.e.
    SET sql_mode = '';

    Then I tried the command below which worked allowing the database to be installed
    SET GLOBAL sql_mode = '';

提交回复
热议问题