Should I disable MySQL strict mode?

后端 未结 4 791
我在风中等你
我在风中等你 2020-12-11 19:07

I have been working on a site that had MySQL strict mode enabled. One person had a long user agent string that was logged in our log table and unfortunately the user agent s

4条回答
  •  遥遥无期
    2020-12-11 19:46

    If you have a need to do so, failing queries, and you do not have knowledge or budget to fix it - then yes.

    If anyone is asking this is how to disable strict mode properly, just by adding this in MySQL config:

    sql_mode=NO_ENGINE_SUBSTITUTION
    innodb_strict_mode=0
    

提交回复
热议问题