MySQL Incorrect datetime value: '0000-00-00 00:00:00'

后端 未结 19 1043
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 15:51

I\'ve recently taken over an old project that was created 10 years ago. It uses MySQL 5.1.

Among other things, I need to change the default character set from latin1

19条回答
  •  心在旅途
    2020-11-29 16:36

    Make the sql mode non strict

    if using laravel go to config->database, the go to mysql settings and make the strict mode false

提交回复
热议问题