How to get rid of STRICT SQL mode in MySQL

后端 未结 7 751
日久生厌
日久生厌 2020-12-15 04:59

This is a follow up to this question MYSQL incorrect DATETIME format

How to get rid of STRICT_TRANS_TABLES once and for all?

mysql --help report

7条回答
  •  無奈伤痛
    2020-12-15 05:22

    Now you can`t set sql_mode to empty string, actual query is:

    SET @@GLOBAL.sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    

    MySQL 5.7.16

提交回复
热议问题