How to get rid of STRICT SQL mode in MySQL

后端 未结 7 748
日久生厌
日久生厌 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:28

    On Centos 6.5 i had to edit /usr/my.cnf and set (even though /etc/my.cnf existed and bindings were successfully set there

    [mysqld]
    sql_mode=NO_ENGINE_SUBSTITUTION
    

    package was from:

    mysql-community-client.x86_64      5.6.16-1.el6            @mysql56-community
    
    0 讨论(0)
提交回复
热议问题